AI Slop Code RIsk Monitor

openedx/openedx-platform

The Open edX LMS & Studio, powering education sites around the world!

19.0 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for openedx/openedx-platform, a Python project with 8,195 GitHub stars. SynthScan examined 1,072,699 lines of code across 6348 source files, recording 16419 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 19.0 (Elevated pattern signal); it is not an authorship estimate.

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

19.0
Adjusted Signal
19.0
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
8.2K
Stars
Python
Language
1.1M
Lines of Code
6.3K
Files
16.4K
Pattern Hits
2026-10-12
Scan Date
0.12
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 50.1/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 10.9/100 · LOW

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

Agent Over-Engineering Ratio 49.9/100 · MEDIUM

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

PR Review Velocity Impact 63.9/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 123HIGH 621MEDIUM 602LOW 15073

Directory Score Breakdown

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

Pattern Findings

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

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers12432 hits · 11756 pts
SeverityFileLineSnippetContext
LOWlms/tests.py49 def test_api_docs_schema_cache(self):CODE
LOWlms/tests.py72 def test_api_docs_schema_cache_per_urlconf(self):CODE
LOWlms/djangoapps/commerce/utils.py30def is_account_activation_requirement_disabled():CODE
LOWlms/djangoapps/commerce/utils.py56 def get_absolute_ecommerce_url(self, ecommerce_page_url):CODE
LOWlms/djangoapps/commerce/utils.py396def _send_refund_notification(user, refund_ids):CODE
LOWlms/djangoapps/commerce/utils.py420def _generate_refund_notification_body(student, refund_ids):CODE
LOWlms/djangoapps/commerce/tests/test_utils.py83 def test_is_enabled_activation_requirement_disabled(self):CODE
LOWlms/djangoapps/commerce/tests/test_utils.py91 def test_is_enabled_for_sites(self, is_site):CODE
LOW⚡lms/djangoapps/commerce/tests/test_utils.py103 def test_get_absolute_ecommerce_url(self):CODE
LOW⚡lms/djangoapps/commerce/tests/test_utils.py109 def test_get_receipt_page_url(self):CODE
LOW⚡lms/djangoapps/commerce/tests/test_utils.py117 def test_get_order_dashboard_url(self):CODE
LOWlms/djangoapps/commerce/tests/test_utils.py140 def test_get_checkout_page_url(self, skus, program_uuid=None):CODE
LOWlms/djangoapps/commerce/tests/test_utils.py168 def test_get_checkout_page_url_with_enterprise_catalog_uuid(self, skus, enterprise_catalog_uuid):CODE
LOWlms/djangoapps/commerce/tests/test_utils.py204 def test_ecommerce_service_not_configured(self, mock_commerce_configured):CODE
LOWlms/djangoapps/commerce/tests/test_utils.py211 def test_no_ecommerce_connection_and_failure(self):CODE
LOWlms/djangoapps/commerce/tests/test_utils.py224 def test_ecommerce_successful_refund(self):CODE
LOWlms/djangoapps/commerce/tests/test_utils.py254 def test_ecommerce_refund_failed_process_notification_sent(self, mock_send_notification):CODE
LOWlms/djangoapps/commerce/tests/test_utils.py278 def test_ecommerce_refund_not_verified_notification_for_entitlement(self, mock_send_notification):CODE
LOWlms/djangoapps/commerce/tests/test_utils.py309 def test_ecommerce_refund_send_notification_failed(self, mock_send_notification):CODE
LOWlms/djangoapps/commerce/tests/test_utils.py339 def test_mode_change_after_refund_seat(self, course_modes, new_mode):CODE
LOWlms/djangoapps/commerce/tests/test_signals.py147 def test_notification_when_approval_fails(self, mock_send_notification):CODE
LOWlms/djangoapps/commerce/tests/test_signals.py162 def test_notification_if_automatic_approval_disabled(self, mock_send_notification):CODE
LOWlms/djangoapps/commerce/tests/test_signals.py176 def test_no_notification_after_approval(self, mock_send_notification):CODE
LOWlms/djangoapps/commerce/tests/test_signals.py191 def test_notification_no_refund(self, mock_send_notification):CODE
LOWlms/djangoapps/commerce/tests/test_signals.py208 def test_notification_not_verified(self, mode, mock_send_notification):CODE
LOWlms/djangoapps/commerce/tests/test_signals.py234 def test_notification_themed_site(self, mock_is_request_in_themed_site): # pylint: disable=unused-argumentCODE
LOWlms/djangoapps/commerce/tests/test_signals.py244 def test_send_refund_notification(self, student_email, mock_zendesk):CODE
LOW⚡lms/djangoapps/commerce/tests/test_signals.py267 def call_create_zendesk_ticket(self, name='Test user', email='user@example.com', subject='Test Ticket',CODE
LOW⚡lms/djangoapps/commerce/tests/test_signals.py274 def test_create_zendesk_ticket_no_settings(self):CODE
LOW⚡lms/djangoapps/commerce/tests/test_signals.py281 def test_create_zendesk_ticket_request_error(self):CODE
LOWlms/djangoapps/commerce/tests/test_signals.py293 def test_create_zendesk_ticket(self):CODE
LOWlms/djangoapps/commerce/tests/__init__.py77 def test_invalid_configuration(self, kwargs):CODE
LOW…e/management/commands/tests/test_configure_commerce.py17 def test_commerce_configuration(self):CODE
LOW…e/management/commands/tests/test_configure_commerce.py51 def test_site_associated_commerce_configuration(self):CODE
LOW…s/djangoapps/commerce/api/v1/tests/test_serializers.py12 def test_validate_course_id_with_non_existent_course(self):CODE
LOW…s/djangoapps/commerce/api/v1/tests/test_serializers.py20 def test_validate_course_id_with_invalid_key(self):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_views.py92 def test_authentication_required(self):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_views.py129 def test_authentication_required(self, method):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_views.py136 def test_authorization_required(self, method):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_views.py152 def test_retrieve_invalid_course(self):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_views.py158 def _get_update_response_and_expected_data(self, mode_expiration, verification_deadline):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_views.py196 def test_update_invalid_dates(self):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_views.py212 def test_update_verification_deadline_without_expiring_modes(self):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_views.py223 def test_update_remove_verification_deadline(self):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_views.py247 def test_update_verification_deadline_left_alone(self):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_views.py273 def test_remove_upgrade_deadline(self):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_views.py339 def test_update_professional_expiration(self, mode_slug, expiration_datetime_name):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_views.py394 def test_create_with_permissions(self):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_views.py408 def test_create_with_non_existent_course(self):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_models.py29 def test_get_mode_display_name(self, slug, expected_display_name):CODE
LOWlms/djangoapps/commerce/api/v1/tests/test_models.py34 def test_get_mode_display_name_unknown_slug(self):CODE
LOWlms/djangoapps/commerce/api/v0/tests/test_views.py123 def test_invalid_request_data(self):CODE
LOWlms/djangoapps/commerce/api/v0/tests/test_views.py131 def test_course_for_active_and_inactive_user(self, user_is_active):CODE
LOWlms/djangoapps/commerce/api/v0/tests/test_views.py165 def test_course_without_sku_default(self):CODE
LOWlms/djangoapps/commerce/api/v0/tests/test_views.py177 def test_course_without_sku_honor(self):CODE
LOW⚡lms/djangoapps/commerce/api/v0/tests/test_views.py210 def test_course_with_professional_mode_only(self):CODE
LOW⚡lms/djangoapps/commerce/api/v0/tests/test_views.py215 def test_professional_mode_only_and_ecommerce_service_not_configured(self):CODE
LOW⚡lms/djangoapps/commerce/api/v0/tests/test_views.py231 def test_existing_active_enrollment(self):CODE
LOW⚡lms/djangoapps/commerce/api/v0/tests/test_views.py243 def test_existing_inactive_enrollment(self):CODE
LOW⚡lms/djangoapps/commerce/api/v0/tests/test_views.py257 def test_marketing_email_opt_in(self, is_opt_in, has_sku, is_exception, mock_update):CODE
12372 more matches not shown…
Self-Referential Comments466 hits · 1451 pts
SeverityFileLineSnippetContext
MEDIUMdb_keyword_overrides.yml1# This file is used by the 'check_reserved_keywords' management command to allow specific field names to be overriddenCOMMENT
MEDIUM⚡lms/djangoapps/commerce/api/v0/tests/test_views.py248 # Create an inactive enrollmentCOMMENT
MEDIUMlms/djangoapps/grades/models.py244 # Create the visual block and add mark as newly createdCOMMENT
MEDIUMlms/djangoapps/grades/tests/test_subsection_grade.py21 # Create a grade that *isn't* saved to the databaseCOMMENT
MEDIUMlms/djangoapps/grades/tests/test_score_render.py295 # Create a score eventCOMMENT
MEDIUM…/djangoapps/instructor_task/tests/test_tasks_helper.py1167 # Create a verticalCOMMENT
MEDIUMlms/djangoapps/instructor_task/tests/test_base.py126 # Create the courseCOMMENT
MEDIUM…jangoapps/instructor_task/tasks_helper/module_state.py361 # This module isn't being used for front-end renderingCOMMENT
MEDIUMlms/djangoapps/bulk_email/tests/test_email.py443 # Create a mode and designate an enrolled user to be placed in that modeCOMMENT
MEDIUMlms/djangoapps/bulk_email/tests/test_email.py554 # Create a student with Unicode in their first & last namesCOMMENT
MEDIUM⚡lms/djangoapps/bulk_email/tests/test_signals.py105 # Create a course key for a course that doesn't exist in CourseOverviewCOMMENT
MEDIUM⚡lms/djangoapps/bulk_email/tests/test_signals.py108 # Create an enrollment with a course_id that doesn't have a CourseOverviewCOMMENT
MEDIUM⚡lms/djangoapps/experiments/tests/test_utils.py33 # Create a course runCOMMENT
MEDIUM⚡lms/djangoapps/experiments/tests/test_utils.py40 # Create an entitlementCOMMENT
MEDIUMlms/djangoapps/certificates/tests/test_support_views.py63 # Create the support staff userCOMMENT
MEDIUMlms/djangoapps/certificates/tests/test_support_views.py71 # Create a studentCOMMENT
MEDIUMlms/djangoapps/certificates/tests/test_support_views.py141 # Create a user and log inCOMMENT
MEDIUMlms/djangoapps/certificates/tests/test_support_views.py265 # Create a user and log inCOMMENT
MEDIUMlms/djangoapps/certificates/tests/test_support_views.py398 # Create a user and log inCOMMENT
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1319 # Create a org and mode template language=nullSTRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1326 # Create a org and mode template language=wrong_languageSTRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1333 # Create an org and mode template language=''STRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1340 # Create a org and mode template language=langSTRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1377 # Create a org template language=nullSTRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1384 # Create a org template language=wrong_languageSTRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1391 # Create an org template language=''STRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1398 # Create a org template language=langSTRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1436 # Create a mode template language=nullSTRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1443 # Create a mode template language=wrong_languageSTRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1450 # Create a mode template language=''STRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1457 # Create a mode template language=langSTRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1498 # Create a mode template language=nullSTRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1505 # Create a mode template language=wrong_languageSTRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1512 # Create a mode template language=''STRING
MEDIUM⚡lms/djangoapps/certificates/tests/test_webview_views.py1519 # Create a mode template language=langSTRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1239 # Create an org_mode_and_coursekey template language=nullSTRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1248 # Create an org_mode_and_coursekey template language=wrong_languageSTRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1261 # Create an org_mode_and_coursekey template language=''STRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1274 # Create a org_mode_and_coursekey template language=langSTRING
MEDIUM⚡…angoapps/courseware/tests/test_self_paced_overrides.py66 # Create a released discussion xblockCOMMENT
MEDIUM⚡…angoapps/courseware/tests/test_self_paced_overrides.py74 # Create a scheduled discussion xblockCOMMENT
MEDIUM…jangoapps/courseware/tests/test_credit_requirements.py66 # Create a user and log inCOMMENT
MEDIUMlms/djangoapps/courseware/tests/test_views.py1161 # Create a new course, a user which will not be enrolled in course, admin user for staff accessCOMMENT
MEDIUMlms/djangoapps/courseware/tests/test_block_render.py2516 # Create a child for each userCOMMENT
MEDIUM⚡lms/djangoapps/ccx/tests/test_views.py1250 # Create a Split Mongo course and enroll a student user in it.COMMENT
MEDIUM⚡lms/djangoapps/ccx/tests/test_views.py1256 # Create a CCX coach.COMMENT
MEDIUM⚡lms/djangoapps/ccx/tests/test_views.py1261 # Create a CCX course and enroll the user in it.COMMENT
MEDIUMlms/djangoapps/ccx/tests/test_views.py860 # Create a course outlineCOMMENT
MEDIUMlms/djangoapps/ccx/tests/test_views.py1005 # Create a course outlineCOMMENT
MEDIUMlms/djangoapps/ccx/tests/test_ccx_modulestore.py29 # Create a course outlineCOMMENT
MEDIUMlms/djangoapps/ccx/tests/utils.py32 # Create a course outlineCOMMENT
MEDIUMlms/djangoapps/ccx/tests/test_overrides.py43 # Create a course outlineCOMMENT
MEDIUMlms/djangoapps/user_tours/v1/tests/test_views.py168 # Create a user and a tour for testingCOMMENT
MEDIUM⚡lms/djangoapps/support/tests/test_views.py2074 # Create a submitted attempt in the current courseCOMMENT
MEDIUM⚡lms/djangoapps/support/tests/test_views.py2078 # Create an attempt in the other course that has been verifiedCOMMENT
MEDIUM…djangoapps/course_api/blocks/tests/test_serializers.py130 # Create a staff user to be able to test visible_to_staff_onlyCOMMENT
MEDIUM⚡lms/djangoapps/course_api/tests/test_views.py550 # Create a second course, along with an instructor user for it.COMMENT
MEDIUM⚡lms/djangoapps/course_api/tests/test_views.py555 # Create a third course, along with an user that has both staff and instructor for it.COMMENT
MEDIUMlms/djangoapps/course_api/tests/test_views.py175 # Create a second course to be filtered out of queries.COMMENT
MEDIUMlms/djangoapps/course_api/tests/test_views.py209 # Create a second course to be filtered out of queries.COMMENT
406 more matches not shown…
Hallucination Indicators123 hits · 1315 pts
SeverityFileLineSnippetContext
CRITICALlms/djangoapps/grades/tasks.py10from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/grades/rest_api/v1/views.py10from django.core.exceptions import ValidationError # pylint: disable=wrong-import-orderCODE
CRITICALlms/djangoapps/branding/models.py13from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/branding/tests/test_models.py6from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/program_enrollments/models.py7from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/instructor_task/tasks_helper/misc.py17from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/bulk_email/forms.py9from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/certificates/models.py15from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/certificates/tests/test_models.py10from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/ccx/utils.py18from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/course_api/forms.py8from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/course_api/views.py6from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/course_api/blocks/forms.py7from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/course_api/blocks/views.py6from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/discussion/rest_api/forms.py6from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/discussion/rest_api/api.py16from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/discussion/rest_api/tests/test_api_v2.py20from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/survey/models.py9from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/survey/tests/test_models.py10from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/instructor/utils.py12from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/instructor/tests/test_utils.py11from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/instructor/tests/test_api.py21from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/instructor/views/api_v2.py19from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALlms/djangoapps/instructor/views/serializer.py5from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/badges/models.py6from django.core.exceptions import ValidationErrorCODE
CRITICAL…/static/js/spec/edxnotes/plugins/accessibility_spec.js225 expect(this.annotator.viewer.hide.calls.count()).toBe(5);CODE
CRITICAL⚡…/static/js/spec/edxnotes/plugins/accessibility_spec.js291 this.annotator.editor.submit.calls.reset();CODE
CRITICAL⚡…/static/js/spec/edxnotes/plugins/accessibility_spec.js301 this.annotator.editor.submit.calls.reset();CODE
CRITICAL⚡…/static/js/spec/edxnotes/plugins/accessibility_spec.js311 this.annotator.editor.hide.calls.reset();CODE
CRITICAL…/static/js/spec/edxnotes/plugins/accessibility_spec.js324 expect(this.annotator.editor.hide.calls.count()).toBe(3);CODE
CRITICAL…atic/js/spec/edxnotes/plugins/caret_navigation_spec.js125 expect(this.annotator.adder.position.calls.count()).toBe(1);CODE
CRITICALopenedx/core/djangoapps/course_groups/cohorts.py11from django.core.exceptions import ValidationErrorCODE
CRITICALopenedx/core/djangoapps/course_groups/models.py10from django.core.exceptions import ValidationErrorCODE
CRITICAL⚡openedx/core/djangoapps/course_groups/urls.py17 openedx.core.djangoapps.course_groups.views.CohortSettings.as_view(),CODE
CRITICAL⚡openedx/core/djangoapps/course_groups/urls.py24 openedx.core.djangoapps.course_groups.views.CohortHandler.as_view(),CODE
CRITICAL⚡openedx/core/djangoapps/course_groups/urls.py31 openedx.core.djangoapps.course_groups.views.CohortUsers.as_view(),CODE
CRITICAL⚡openedx/core/djangoapps/course_groups/urls.py38 lms.djangoapps.instructor.views.api.CohortCSV.as_view(),CODE
CRITICALopenedx/core/djangoapps/course_groups/views.py11from django.core.exceptions import ValidationErrorCODE
CRITICAL…edx/core/djangoapps/profile_images/tests/test_views.py104 profile = self.user.profile.__class__.objects.get(user=self.user)CODE
CRITICALopenedx/core/djangoapps/course_live/serializers.py4from django.core.exceptions import ValidationErrorCODE
CRITICALopenedx/core/djangoapps/enrollments/forms.py6from django.core.exceptions import ValidationErrorCODE
CRITICALopenedx/core/djangoapps/enrollments/v2/forms.py16from django.core.exceptions import ValidationErrorCODE
CRITICALopenedx/core/djangoapps/content_tagging/api.py12from django.core.exceptions import ValidationErrorCODE
CRITICALopenedx/core/djangoapps/discussions/models.py12from django.core.exceptions import ValidationErrorCODE
CRITICALopenedx/core/djangoapps/discussions/serializers.py4from django.core.exceptions import ValidationErrorCODE
CRITICALopenedx/core/djangoapps/discussions/tests/test_views.py11from django.core.exceptions import ValidationErrorCODE
CRITICALopenedx/core/djangoapps/util/forms.py6from django.core.exceptions import ValidationErrorCODE
CRITICALopenedx/core/djangoapps/user_api/admin.py5from django.core.exceptions import ValidationErrorCODE
CRITICAL…nedx/core/djangoapps/user_api/tests/test_middleware.py53 self.tracker.get_tracker.return_value.enter_context.assert_called_with(CODE
CRITICAL…dx/core/djangoapps/user_api/accounts/tests/test_api.py15from django.core.exceptions import ValidationErrorCODE
CRITICAL…/core/djangoapps/content/search/tests/test_handlers.py84 meilisearch_client.return_value.index.return_value.update_documents.assert_called_with([doc_sequential])CODE
CRITICAL…/core/djangoapps/content/search/tests/test_handlers.py112 meilisearch_client.return_value.index.return_value.update_documents.assert_called_with([doc_vertical])CODE
CRITICAL⚡…/core/djangoapps/content/search/tests/test_handlers.py126 meilisearch_client.return_value.index.return_value.update_documents.assert_called_with([CODE
CRITICAL⚡…/core/djangoapps/content/search/tests/test_handlers.py135 meilisearch_client.return_value.index.return_value.delete_document.assert_called_with(CODE
CRITICAL⚡…/core/djangoapps/content/search/tests/test_handlers.py195 meilisearch_client.return_value.index.return_value.update_documents.assert_called_with([doc_problem])CODE
CRITICAL⚡…/core/djangoapps/content/search/tests/test_handlers.py202 meilisearch_client.return_value.index.return_value.update_documents.assert_called_with([doc_problem])CODE
CRITICAL⚡…/core/djangoapps/content/search/tests/test_handlers.py209 meilisearch_client.return_value.index.return_value.update_documents.assert_called_with([doc_problem])CODE
CRITICAL⚡…/core/djangoapps/content/search/tests/test_handlers.py218 meilisearch_client.return_value.index.return_value.update_documents.assert_called_with([doc_problem])CODE
CRITICAL⚡…/core/djangoapps/content/search/tests/test_handlers.py224 meilisearch_client.return_value.index.return_value.delete_document.assert_called_with(CODE
CRITICAL⚡…/core/djangoapps/content/search/tests/test_handlers.py231 meilisearch_client.return_value.index.return_value.update_documents.assert_any_call([doc_problem])CODE
63 more matches not shown…
Cross-File Repetition254 hits · 1270 pts
SeverityFileLineSnippetContext
HIGHlms/djangoapps/edxnotes/tests.py0helper function for creating headers for the jwt authentication.STRING
HIGHlms/djangoapps/user_tours/v1/tests/test_views.py0helper function for creating headers for the jwt authentication.STRING
HIGH…/djangoapps/discussion/rest_api/tests/test_views_v2.py0helper function for creating headers for the jwt authentication.STRING
HIGHopenedx/core/djangoapps/enrollments/tests/test_views.py0helper function for creating headers for the jwt authentication.STRING
HIGH…oapps/user_api/accounts/tests/test_retirement_views.py0helper function for creating headers for the jwt authentication.STRING
HIGH…/core/djangoapps/user_api/accounts/tests/test_views.py0helper function for creating headers for the jwt authentication.STRING
HIGHlms/djangoapps/grades/transformer.py0unique identifier for the transformer's class. this must match the entry point name in the package configuration.STRING
HIGH…angoapps/course_blocks/transformers/library_content.py0unique identifier for the transformer's class. this must match the entry point name in the package configuration.STRING
HIGHlms/djangoapps/course_blocks/transformers/split_test.py0unique identifier for the transformer's class. this must match the entry point name in the package configuration.STRING
HIGH…angoapps/course_blocks/transformers/user_partitions.py0unique identifier for the transformer's class. this must match the entry point name in the package configuration.STRING
HIGH…oapps/course_blocks/transformers/load_override_data.py0unique identifier for the transformer's class. this must match the entry point name in the package configuration.STRING
HIGHlms/djangoapps/course_blocks/transformers/start_date.py0unique identifier for the transformer's class. this must match the entry point name in the package configuration.STRING
HIGHlms/djangoapps/course_blocks/transformers/visibility.py0unique identifier for the transformer's class. this must match the entry point name in the package configuration.STRING
HIGH…jangoapps/course_blocks/transformers/hidden_content.py0unique identifier for the transformer's class. this must match the entry point name in the package configuration.STRING
HIGH…pps/course_blocks/transformers/access_denied_filter.py0unique identifier for the transformer's class. this must match the entry point name in the package configuration.STRING
HIGHlms/djangoapps/courseware/transformers.py0unique identifier for the transformer's class. this must match the entry point name in the package configuration.STRING
HIGHopenedx/core/djangoapps/discussions/transformers.py0unique identifier for the transformer's class. this must match the entry point name in the package configuration.STRING
HIGH…edx/features/content_type_gating/block_transformers.py0unique identifier for the transformer's class. this must match the entry point name in the package configuration.STRING
HIGH…enedx/features/effort_estimation/block_transformers.py0unique identifier for the transformer's class. this must match the entry point name in the package configuration.STRING
HIGHlms/djangoapps/grades/transformer.py0collects any information that's necessary to execute this transformer's transform method.STRING
HIGH…angoapps/course_blocks/transformers/library_content.py0collects any information that's necessary to execute this transformer's transform method.STRING
HIGHlms/djangoapps/course_blocks/transformers/split_test.py0collects any information that's necessary to execute this transformer's transform method.STRING
HIGH…oapps/course_blocks/transformers/load_override_data.py0collects any information that's necessary to execute this transformer's transform method.STRING
HIGHlms/djangoapps/course_blocks/transformers/start_date.py0collects any information that's necessary to execute this transformer's transform method.STRING
HIGHlms/djangoapps/course_blocks/transformers/visibility.py0collects any information that's necessary to execute this transformer's transform method.STRING
HIGH…jangoapps/course_blocks/transformers/hidden_content.py0collects any information that's necessary to execute this transformer's transform method.STRING
HIGH…pps/course_blocks/transformers/access_denied_filter.py0collects any information that's necessary to execute this transformer's transform method.STRING
HIGHlms/djangoapps/courseware/transformers.py0collects any information that's necessary to execute this transformer's transform method.STRING
HIGH…jangoapps/course_api/blocks/transformers/blocks_api.py0collects any information that's necessary to execute this transformer's transform method.STRING
HIGH…jangoapps/course_api/blocks/transformers/navigation.py0collects any information that's necessary to execute this transformer's transform method.STRING
HIGH…ngoapps/course_api/blocks/transformers/extra_fields.py0collects any information that's necessary to execute this transformer's transform method.STRING
HIGH…ngoapps/course_api/blocks/transformers/block_counts.py0collects any information that's necessary to execute this transformer's transform method.STRING
HIGH…edx/features/content_type_gating/block_transformers.py0collects any information that's necessary to execute this transformer's transform method.STRING
HIGHlms/djangoapps/grades/config/waffle.py0this module contains various configuration settings via waffle switches for the contentstore app.STRING
HIGHlms/djangoapps/instructor_task/config/waffle.py0this module contains various configuration settings via waffle switches for the contentstore app.STRING
HIGHlms/djangoapps/certificates/config.py0this module contains various configuration settings via waffle switches for the contentstore app.STRING
HIGHlms/djangoapps/learner_dashboard/config/waffle.py0this module contains various configuration settings via waffle switches for the contentstore app.STRING
HIGHlms/djangoapps/teams/waffle.py0this module contains various configuration settings via waffle switches for the contentstore app.STRING
HIGHopenedx/core/djangoapps/discussions/config/waffle.py0this module contains various configuration settings via waffle switches for the contentstore app.STRING
HIGHopenedx/core/djangoapps/notifications/config/waffle.py0this module contains various configuration settings via waffle switches for the contentstore app.STRING
HIGHcms/djangoapps/contentstore/config/waffle.py0this module contains various configuration settings via waffle switches for the contentstore app.STRING
HIGHlms/djangoapps/grades/tests/test_events.py0used show that the open edx event was called by the django signal handler.STRING
HIGHlms/djangoapps/certificates/tests/test_events.py0used show that the open edx event was called by the django signal handler.STRING
HIGH…edx/core/djangoapps/course_groups/tests/test_events.py0used show that the open edx event was called by the django signal handler.STRING
HIGH…/core/djangoapps/user_authn/views/tests/test_events.py0used show that the open edx event was called by the django signal handler.STRING
HIGHcommon/djangoapps/student/tests/test_events.py0used show that the open edx event was called by the django signal handler.STRING
HIGHlms/djangoapps/grades/tests/test_transformer.py0<problem> <optionresponse> <p>you can use this template as a guide to the simple editor markdown and olx markup to use fSTRING
HIGHlms/djangoapps/courseware/tests/test_block_render.py0<problem> <optionresponse> <p>you can use this template as a guide to the simple editor markdown and olx markup to use fSTRING
HIGHxmodule/tests/test_capa_block.py0<problem> <optionresponse> <p>you can use this template as a guide to the simple editor markdown and olx markup to use fSTRING
HIGH…s/management/commands/recalculate_subsection_grades.py0entry point for subclassed commands to add custom arguments.STRING
HIGH…jangoapps/grades/management/commands/compute_grades.py0entry point for subclassed commands to add custom arguments.STRING
HIGH…tructure/management/commands/generate_course_blocks.py0entry point for subclassed commands to add custom arguments.STRING
HIGHlms/djangoapps/grades/rest_api/v1/tests/test_views.py0set up a simple course for testing basic grading functionality.STRING
HIGH…jangoapps/courseware/tests/test_submitting_problems.py0set up a simple course for testing basic grading functionality.STRING
HIGHlms/djangoapps/support/tests/test_tasks.py0set up a simple course for testing basic grading functionality.STRING
HIGHlms/djangoapps/instructor_task/models.py0we're using migrations! if you make changes to this model, be sure to create an appropriate migration file and check it STRING
HIGHlms/djangoapps/coursewarehistoryextended/models.py0we're using migrations! if you make changes to this model, be sure to create an appropriate migration file and check it STRING
HIGHlms/djangoapps/courseware/models.py0we're using migrations! if you make changes to this model, be sure to create an appropriate migration file and check it STRING
HIGHlms/djangoapps/instructor_task/tests/test_views.py0tests api and view methods that involve the reporting of status for background tasks.STRING
HIGHlms/djangoapps/instructor_task/tests/test_api.py0tests api and view methods that involve the reporting of status for background tasks.STRING
194 more matches not shown…
Empty Error Handlers193 hits · 965 pts
SeverityFileLineSnippetContext
HIGHlms/djangoapps/commerce/api/v1/permissions.py26except User.DoesNotExist:CODE
HIGHlms/djangoapps/grades/models.py552except KeyError:CODE
HIGHlms/djangoapps/grades/models.py715except (PersistentCourseGrade.DoesNotExist, KeyError):CODE
HIGHlms/djangoapps/grades/models.py807except PersistentSubsectionGradeOverride.DoesNotExist:CODE
HIGHlms/djangoapps/grades/subsection_grade_factory.py87except PersistentSubsectionGrade.DoesNotExist:CODE
HIGHlms/djangoapps/grades/subsection_grade.py184except KeyError:CODE
HIGHlms/djangoapps/grades/rest_api/v1/utils.py38except (KeyError, ValueError):CODE
HIGHlms/djangoapps/instructor_analytics/basic.py629except ObjectDoesNotExist:CODE
HIGHlms/djangoapps/program_enrollments/rest_api/v1/views.py1000except ProviderDoesNotExistException:CODE
HIGHlms/djangoapps/instructor_task/notifications.py56except Site.DoesNotExist:CODE
HIGHlms/djangoapps/instructor_task/notifications.py44except Site.DoesNotExist:CODE
HIGHlms/djangoapps/instructor_task/tests/test_base.py385except ValueError:CODE
HIGHlms/djangoapps/instructor_task/tasks_helper/grades.py949except NotImplementedError:CODE
HIGHlms/djangoapps/bulk_email/forms.py67except CourseEmailTemplate.DoesNotExist:CODE
HIGHlms/djangoapps/experiments/utils.py280except CourseEnrollment.DoesNotExist:CODE
HIGHlms/djangoapps/experiments/utils.py395except Schedule.DoesNotExist:CODE
HIGHlms/djangoapps/experiments/views.py66except ExperimentData.DoesNotExist:CODE
HIGHlms/djangoapps/course_blocks/transformers/utils.py16except KeyError:CODE
HIGHlms/djangoapps/certificates/models.py269except cls.DoesNotExist:CODE
HIGHlms/djangoapps/certificates/api.py550except CertificateTemplateAsset.DoesNotExist:CODE
HIGHlms/djangoapps/certificates/api.py914except ObjectDoesNotExist:CODE
HIGHlms/djangoapps/certificates/views/webview.py386except GeneratedCertificate.DoesNotExist:CODE
HIGHlms/djangoapps/courseware/student_field_overrides.py101except StudentFieldOverride.DoesNotExist:CODE
HIGHlms/djangoapps/courseware/utils.py81except IndexError:CODE
HIGHlms/djangoapps/courseware/tests/pacts/views.py22except IndexError:CODE
HIGHlms/djangoapps/ccx/overrides.py196except CcxFieldOverride.DoesNotExist:CODE
HIGHlms/djangoapps/ccx/overrides.py210except KeyError:CODE
HIGHlms/djangoapps/user_tours/handlers.py28except ProgrammingError as e: # noqa: F841CODE
HIGHlms/djangoapps/support/tasks.py122except StudentModule.DoesNotExist:CODE
HIGHlms/djangoapps/support/views/program_enrollments.py173except (CODE
HIGHlms/djangoapps/course_api/blocks/serializers.py139except KeyError:CODE
HIGHlms/djangoapps/course_api/blocks/tests/pacts/views.py26except IndexError:CODE
HIGHlms/djangoapps/lti_provider/models.py72except LtiConsumer.DoesNotExist:CODE
HIGH…jangoapps/verify_student/tests/fake_software_secure.py46except: # pylint: disable=bare-exceptCODE
HIGHlms/djangoapps/course_goals/tests/test_user_activity.py181except: # pylint: disable=bare-exceptCODE
HIGHlms/djangoapps/course_goals/tests/test_user_activity.py196except: # pylint: disable=bare-exceptCODE
HIGHlms/djangoapps/teams/search_indexes.py144except ElasticSearchConnectionError:CODE
HIGHlms/djangoapps/teams/search_indexes.py155except ElasticSearchConnectionError:CODE
HIGHlms/djangoapps/teams/csv.py466except CourseTeamMembership.DoesNotExist:CODE
HIGHlms/djangoapps/teams/csv.py476except CourseTeamMembership.DoesNotExist:CODE
HIGHlms/djangoapps/learner_home/views.py280except UnavailableCompletionData:CODE
HIGH…goapps/discussion/django_comment_client/tests/utils.py113except NotImplementedError:CODE
HIGH…ssion/django_comment_client/base/event_transformers.py87except InvalidKeyError:CODE
HIGH…ssion/django_comment_client/base/event_transformers.py120except User.DoesNotExist:CODE
HIGH…ssion/django_comment_client/base/event_transformers.py139except NoReverseMatch:CODE
HIGH…ngoapps/discussion/django_comment_client/base/views.py1197except User.DoesNotExist:CODE
HIGHlms/djangoapps/discussion/tests/test_views_v2.py1079except CourseUserGroup.DoesNotExist:CODE
HIGHlms/djangoapps/discussion/rest_api/serializers.py650except CommentClientRequestError:CODE
HIGHlms/djangoapps/discussion/rest_api/api.py1001except ValueError:CODE
HIGHlms/djangoapps/discussion/rest_api/views.py782except ValueError:CODE
HIGHlms/djangoapps/course_wiki/middleware.py40except Http404:CODE
HIGHlms/djangoapps/course_wiki/views.py114except NoRootURL:CODE
HIGHlms/djangoapps/instructor/enrollment.py612except User.DoesNotExist:CODE
HIGHlms/djangoapps/instructor/enrollment.py333except StudentModule.DoesNotExist:CODE
HIGHlms/djangoapps/instructor/views/api_v2.py883except ValueError:CODE
HIGHlms/djangoapps/instructor/views/api_v2.py2714except StudentModule.DoesNotExist:CODE
HIGHlms/djangoapps/instructor/views/api_v2.py2820except (json.JSONDecodeError, KeyError):CODE
HIGH…djangoapps/instructor/views/instructor_task_helpers.py71except InstructorTaskSchedule.DoesNotExist:CODE
HIGHlms/djangoapps/instructor/views/tools.py271except ValueError:CODE
HIGHlms/djangoapps/instructor/views/api.py509except ValueError:CODE
133 more matches not shown…
Unused Imports556 hits · 516 pts
SeverityFileLineSnippetContext
LOWconftest.py7CODE
LOWconftest.py9CODE
LOWconftest.py9CODE
LOWlms/__init__.py21CODE
LOWlms/celery.py19CODE
LOWlms/tests.py7CODE
LOWlms/djangoapps/commerce/apps.py19CODE
LOWlms/djangoapps/commerce/tests/__init__.py10CODE
LOWlms/djangoapps/commerce/tests/__init__.py14CODE
LOWlms/djangoapps/commerce/tests/__init__.py23CODE
LOWlms/djangoapps/commerce/api/v0/tests/test_views.py19CODE
LOWlms/djangoapps/grades/tasks.py28CODE
LOWlms/djangoapps/grades/apps.py45CODE
LOWlms/djangoapps/grades/api.py16CODE
LOWlms/djangoapps/grades/api.py20CODE
LOWlms/djangoapps/grades/api.py20CODE
LOWlms/djangoapps/grades/api.py26CODE
LOWlms/djangoapps/grades/api.py27CODE
LOWlms/djangoapps/grades/api.py31CODE
LOWlms/djangoapps/grades/api.py33CODE
LOWlms/djangoapps/grades/api.py34CODE
LOWlms/djangoapps/grades/api.py37CODE
LOWlms/djangoapps/gating/apps.py17CODE
LOWlms/djangoapps/program_enrollments/apps.py32CODE
LOWlms/djangoapps/program_enrollments/apps.py32CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py17CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py18CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py18CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py19CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py19CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py19CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py19CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py19CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py19CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py19CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py19CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py19CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py19CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py19CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py19CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py19CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py19CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py35CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py35CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py35CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py35CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py35CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py35CODE
LOWlms/djangoapps/program_enrollments/api/__init__.py35CODE
LOW…/djangoapps/instructor_task/tests/test_tasks_helper.py87CODE
LOWlms/djangoapps/bulk_email/apps.py12CODE
LOWlms/djangoapps/bulk_email/apps.py14CODE
LOWlms/djangoapps/experiments/views.py17CODE
LOWlms/djangoapps/certificates/apps.py25CODE
LOWlms/djangoapps/certificates/views/__init__.py4CODE
LOWlms/djangoapps/certificates/views/__init__.py5CODE
LOWlms/djangoapps/courseware/block_render.py5CODE
LOWlms/djangoapps/courseware/tests/test_video_handlers.py38CODE
LOWlms/djangoapps/courseware/tests/test_word_cloud.py18CODE
LOWlms/djangoapps/courseware/tests/test_video_mongo.py61CODE
496 more matches not shown…
Over-Commented Block604 hits · 506 pts
SeverityFileLineSnippetContext
LOWwebpack.prod.config.js41// where to find named bundle output files, but doesn't know aboutCOMMENT
LOWpyproject.toml301 # Date: 2026-01-13COMMENT
LOWpyproject.toml321 # Date: 2023-07-26COMMENT
LOWpyproject.toml341 # Issue for unpinning: https://github.com/openedx/edx-platform/issues/35267COMMENT
LOWpyproject.toml361 "social-auth-core<5.0.0",COMMENT
LOWpyproject.toml381 "django-debug-toolbar<6.0.0",COMMENT
LOWpyproject.toml401 #COMMENT
LOWpyproject.toml721 # cms.djangoapps.contentstore.views.tests.test_group_configurationsCOMMENT
LOWpyproject.toml741 "openedx.core.djangoapps.xblock.*.* -> lms.djangoapps.*.*",COMMENT
LOWpyproject.toml761 # -> openedx.features.content_type_gating.partitionsCOMMENT
LOWpyproject.toml841 "openedx.core.djangoapps.content_tagging",COMMENT
LOWwebpack.common.config.js641 'common/static/js/vendor/tinymce/js/tinymce',COMMENT
LOWlms/__init__.py1"""COMMENT
LOWlms/urls.py981 ),COMMENT
LOWlms/djangoapps/grades/config/waffle.py21# .. toggle_use_cases: open_edxCOMMENT
LOWlms/djangoapps/grades/config/waffle.py41# .. toggle_implementation: CourseWaffleFlagCOMMENT
LOWlms/djangoapps/grades/signals/signals.py1"""COMMENT
LOWlms/djangoapps/grades/signals/signals.py21# 'raw_earned', # Score obtained by the userCOMMENT
LOWlms/djangoapps/grades/signals/signals.py41# providing_args=[COMMENT
LOWlms/djangoapps/grades/signals/signals.py61# to the PROBLEM_WEIGHTED_SCORE_CHANGED signal instead, since that is signalledCOMMENT
LOWlms/djangoapps/grades/signals/signals.py81# 'user', # User objectCOMMENT
LOWlms/djangoapps/grades/signals/signals.py101# # score that was created.COMMENT
LOWlms/djangoapps/experiments/utils.py41# .. toggle_warning: This temporary feature toggle does not have a target removal date.COMMENT
LOW…angoapps/course_blocks/transformers/user_partitions.py181 # Do not get the inherited value since field inheritance doesn'tCOMMENT
LOW…angoapps/course_blocks/transformers/user_partitions.py201 # Since this parent has group accessCOMMENT
LOW…urse_blocks/transformers/tests/test_user_partitions.py301 Returns a course hierarchy to test with.COMMENT
LOWlms/djangoapps/courseware/toggles.py21# .. toggle_target_removal_date: NoneCOMMENT
LOWlms/djangoapps/courseware/toggles.py41COMMENT
LOWlms/djangoapps/courseware/toggles.py61# .. toggle_description: Enables Courseware Search on Learning MFECOMMENT
LOWlms/djangoapps/courseware/toggles.py81# .. toggle_warning: None.COMMENT
LOWlms/djangoapps/courseware/toggles.py101# .. toggle_implementation: CourseWaffleFlagCOMMENT
LOWlms/djangoapps/courseware/toggles.py121# .. toggle_creation_date: 2019-05-16COMMENT
LOW…/djangoapps/courseware/tests/test_draft_modulestore.py21 # test success is just getting through the above statement.COMMENT
LOWlms/djangoapps/courseware/views/views.py1181 # verification service).COMMENT
LOWlms/djangoapps/user_tours/handlers.py21 # So this is here because there is a dependency issue in the migrations whereCOMMENT
LOWlms/djangoapps/learner_dashboard/config/waffle.py1"""COMMENT
LOWlms/djangoapps/learner_dashboard/config/waffle.py21 __name__,COMMENT
LOWlms/djangoapps/course_api/__init__.py1""" Course API """COMMENT
LOWlms/djangoapps/course_api/__init__.py21# users, this limit is 20 requests/minute.COMMENT
LOW…ngoapps/course_api/blocks/transformers/student_view.py41 # the XModule side.COMMENT
LOWlms/djangoapps/verify_student/toggles.py1"""COMMENT
LOWlms/djangoapps/verify_student/views.py81 (photo verification that was denied or had an error);COMMENT
LOWlms/djangoapps/verify_student/views.py241 return redirect(redirect_url)COMMENT
LOWlms/djangoapps/lms_xblock/apps.py21 # In order to allow blocks to use a handler url, we need toCOMMENT
LOWlms/djangoapps/discussion/toggles.py21# .. toggle_implementation: CourseWaffleFlagCOMMENT
LOWlms/djangoapps/instructor/toggles.py21# .. toggle_implementation: WaffleFlagCOMMENT
LOWlms/djangoapps/instructor/settings/common.py21COMMENT
LOWlms/djangoapps/instructor/settings/common.py41 # .. toggle_name: ENABLE_GRADE_DOWNLOADSCOMMENT
LOWlms/djangoapps/instructor/settings/common.py61COMMENT
LOWlms/djangoapps/instructor/settings/common.py81 # .. toggle_creation_date: 2021-10-26COMMENT
LOWlms/djangoapps/instructor/settings/common.py101 settings.ENABLE_CERTIFICATES_INSTRUCTOR_MANAGE = FalseCOMMENT
LOWlms/djangoapps/instructor/tests/test_spoc_gradebook.py141 self.assertContains(self.response, "grade_D {color:DarkSlateGray;}")COMMENT
LOWlms/djangoapps/instructor/tests/test_spoc_gradebook.py161 # One use at the top of the page [1]COMMENT
LOWlms/djangoapps/course_home_api/toggles.py21)COMMENT
LOWlms/static/js/Markdown.Converter.js1/* eslint-disable */COMMENT
LOWlms/static/js/Markdown.Converter.js21// More importantly, Showdown behaves like markdown.pl in mostCOMMENT
LOWlms/static/js/Markdown.Converter.js41// Usage:COMMENT
LOWlms/static/js/Markdown.Converter.js241COMMENT
LOWlms/static/js/Markdown.Converter.js821COMMENT
LOWlms/static/js/Markdown.Converter.js841 // with a digit-period-space sequence.COMMENT
544 more matches not shown…
Cross-Language Confusion123 hits · 444 pts
SeverityFileLineSnippetContext
HIGHlms/djangoapps/commerce/api/v1/models.py84 # There are possible downstream effects of settings self.verification_deadline to null,COMMENT
HIGHlms/djangoapps/grades/models.py351 # this subsection. If null, indicates no attemptCOMMENT
HIGHlms/djangoapps/grades/subsection_grade.py110 problem scores. If self.course_data.structure is currently null, this meansSTRING
HIGHlms/djangoapps/grades/subsection_grade.py120 problem scores. If self.course_data.structure is currently null, this meansSTRING
HIGHlms/djangoapps/grades/rest_api/v1/gradebook_views.py455 "category": null,STRING
HIGHlms/djangoapps/grades/rest_api/v1/gradebook_views.py464 "label": null,STRING
HIGH⚡lms/djangoapps/grades/rest_api/v1/gradebook_views.py1066 "earned_all_override": null,STRING
HIGH⚡lms/djangoapps/grades/rest_api/v1/gradebook_views.py1067 "possible_all_override": null,STRING
HIGH⚡lms/djangoapps/grades/rest_api/v1/gradebook_views.py1074 "comments": null,STRING
HIGH⚡lms/djangoapps/grades/rest_api/v1/gradebook_views.py1081 "comments": null,STRING
HIGH⚡lms/djangoapps/grades/rest_api/v1/gradebook_views.py1088 "comments": null,STRING
HIGHlms/djangoapps/grades/rest_api/v1/views.py87 "letter_grade": null,STRING
HIGHlms/djangoapps/grades/rest_api/v1/views.py103 "letter_grade": null,STRING
HIGHlms/djangoapps/program_enrollments/rest_api/v1/views.py162 "next": null,STRING
HIGHlms/djangoapps/program_enrollments/rest_api/v1/views.py446 "next": null,STRING
HIGHlms/djangoapps/program_enrollments/rest_api/v1/views.py592 "next": null,STRING
HIGHlms/djangoapps/program_enrollments/rest_api/v1/views.py746 # Get all the courses of which the user is course staff for. If None, return falseCOMMENT
HIGHlms/djangoapps/program_enrollments/rest_api/v1/views.py844 "next": null,STRING
HIGHlms/djangoapps/program_enrollments/rest_api/v1/views.py845 "previous": null,STRING
HIGHlms/djangoapps/program_enrollments/rest_api/v1/views.py877 "end_date": null,STRING
HIGH⚡lms/djangoapps/certificates/tests/test_webview_views.py1474 This test should check template matching when org=null, course=Null, mode={mode}.CODE
HIGHlms/djangoapps/certificates/tests/test_webview_views.py1180 This test should check template matching when org=null, course=Null, mode={mode}.CODE
HIGHlms/djangoapps/certificates/tests/test_webview_views.py1412 This test should check template matching when org=null, course=Null, mode={mode}.CODE
HIGHlms/djangoapps/courseware/views/views.py1683 # sequence block or its render call. descendants_are_gated shoule not return trueCOMMENT
HIGHlms/djangoapps/ccx/api/v0/views.py297 "previous": null,STRING
HIGHlms/djangoapps/support/views/onboarding_status.py34 "expiration_date": null,STRING
HIGHlms/djangoapps/support/rest_api/v1/views.py197 along with the specified user's role ("instructor", "staff", or null) in each course.STRING
HIGHlms/djangoapps/course_api/views.py458 "previous": null,STRING
HIGHlms/djangoapps/course_api/views.py460 "next": null,STRING
HIGH⚡lms/djangoapps/verify_student/tests/test_models.py401 Test if the `expiration_date` field is null, `expiration_datetime` returns aSTRING
HIGHlms/djangoapps/teams/api.py256 Else, return True. If the user is a course admin, also return trueSTRING
HIGH⚡lms/djangoapps/teams/tests/test_views.py229 self.assertContains(response, '"teams": {"next": null, "previous": null, "count": 0')CODE
HIGH⚡lms/djangoapps/teams/tests/test_views.py235 self.assertContains(response, '"teams": {"next": null, "previous": null, "count": 1')CODE
HIGH⚡lms/djangoapps/teams/tests/test_views.py239 self.assertContains(response, '"teams": {"next": null, "previous": null, "count": 0')CODE
HIGH⚡lms/djangoapps/discussion/rest_api/api.py1098 "reason_code": null,STRING
HIGH⚡lms/djangoapps/discussion/rest_api/api.py1104 "group_id": null,STRING
HIGH⚡lms/djangoapps/discussion/rest_api/api.py1105 "group_name": null,STRING
HIGH⚡lms/djangoapps/discussion/rest_api/api.py1108 "abuse_flagged_count": null,STRING
HIGH⚡lms/djangoapps/discussion/rest_api/api.py1116 "endorsed_comment_list_url": null,STRING
HIGH⚡lms/djangoapps/discussion/rest_api/api.py1117 "non_endorsed_comment_list_url": null,STRING
HIGH⚡lms/djangoapps/discussion/rest_api/api.py1120 "close_reason": null,STRING
HIGH⚡lms/djangoapps/discussion/rest_api/api.py1121 "closed_by": null,STRING
HIGHlms/djangoapps/discussion/rest_api/views.py179 "next": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py243 "enrollment_end": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py348 "task_output": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py570 "previous": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py1266 "previous": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py1276 "invalidated_by": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py1573 "previous": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py2450 "previous": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py3279 "role": null,STRING
HIGHopenedx/core/djangoapps/course_groups/views.py562 If group_id is specified (non-null), user_partition_id must also be specified.STRING
HIGH…/core/djangoapps/course_groups/tests/test_api_views.py26,"group_id":null}'CODE
HIGH…/core/djangoapps/course_groups/tests/test_api_views.py27HANDLER_PATCH_PAYLOAD = '{"name":"Default Group","group_id":null,"user_partition_id":null,"assignment_type":"random"}'CODE
HIGH⚡openedx/core/djangoapps/enrollments/api.py60 "expiration_datetime": null,STRING
HIGH⚡openedx/core/djangoapps/enrollments/api.py61 "description": null,STRING
HIGH⚡openedx/core/djangoapps/enrollments/api.py62 "sku": null,STRING
HIGH⚡openedx/core/djangoapps/enrollments/api.py112 "expiration_datetime": null,STRING
HIGH⚡openedx/core/djangoapps/enrollments/api.py113 "description": null,STRING
HIGH⚡openedx/core/djangoapps/enrollments/api.py114 "sku": null,STRING
63 more matches not shown…
Deep Nesting478 hits · 419 pts
SeverityFileLineSnippetContext
LOWlms/djangoapps/commerce/api/v1/models.py47CODE
LOWlms/djangoapps/edxnotes/helpers.py153CODE
LOWlms/djangoapps/grades/course_grade.py96CODE
LOWlms/djangoapps/grades/subsection_grade_factory.py73CODE
LOWlms/djangoapps/grades/tests/test_course_data.py46CODE
LOW…nt/commands/send_segment_events_for_failed_learners.py92CODE
LOWlms/djangoapps/grades/rest_api/v1/gradebook_views.py583CODE
LOWlms/djangoapps/grades/rest_api/v1/views.py238CODE
LOWlms/djangoapps/grades/rest_api/v1/views.py464CODE
LOW…oapps/grades/rest_api/v1/tests/test_gradebook_views.py1397CODE
LOWlms/djangoapps/branding/views.py153CODE
LOWlms/djangoapps/instructor_analytics/basic.py427CODE
LOWlms/djangoapps/instructor_analytics/basic.py637CODE
LOWlms/djangoapps/instructor_analytics/basic.py438CODE
LOWlms/djangoapps/gating/api.py44CODE
LOW…management/commands/send_program_course_nudge_email.py138CODE
LOW…management/commands/send_program_course_nudge_email.py251CODE
LOWlms/djangoapps/program_enrollments/api/writing.py432CODE
LOWlms/djangoapps/program_enrollments/api/linking.py38CODE
LOWlms/djangoapps/program_enrollments/rest_api/v1/utils.py332CODE
LOWlms/djangoapps/instructor_task/api_helper.py163CODE
LOWlms/djangoapps/instructor_task/subtasks.py66CODE
LOWlms/djangoapps/instructor_task/views.py36CODE
LOWlms/djangoapps/instructor_task/views.py90CODE
LOW…/djangoapps/instructor_task/tests/test_tasks_helper.py104CODE
LOW…/djangoapps/instructor_task/tests/test_tasks_helper.py1479CODE
LOW…/djangoapps/instructor_task/tests/test_tasks_helper.py2101CODE
LOWlms/djangoapps/instructor_task/tasks_helper/misc.py162CODE
LOWlms/djangoapps/instructor_task/tasks_helper/grades.py752CODE
LOWlms/djangoapps/instructor_task/tasks_helper/grades.py870CODE
LOW…jangoapps/instructor_task/tasks_helper/module_state.py34CODE
LOWlms/djangoapps/bulk_email/tasks.py437CODE
LOWlms/djangoapps/bulk_email/models.py108CODE
LOWlms/djangoapps/bulk_email/api.py143CODE
LOWlms/djangoapps/experiments/utils.py429CODE
LOW…angoapps/course_blocks/transformers/library_content.py82CODE
LOW…angoapps/course_blocks/transformers/user_partitions.py78CODE
LOW…angoapps/course_blocks/transformers/user_partitions.py167CODE
LOWlms/djangoapps/certificates/tasks.py87CODE
LOWlms/djangoapps/certificates/tests/test_api.py546CODE
LOWlms/djangoapps/certificates/tests/test_webview_views.py1564CODE
LOWlms/djangoapps/certificates/views/webview.py342CODE
LOWlms/djangoapps/courseware/block_render.py143CODE
LOWlms/djangoapps/courseware/block_render.py752CODE
LOWlms/djangoapps/courseware/block_render.py900CODE
LOWlms/djangoapps/courseware/field_overrides.py228CODE
LOWlms/djangoapps/courseware/field_overrides.py248CODE
LOWlms/djangoapps/courseware/access.py270CODE
LOWlms/djangoapps/courseware/access.py530CODE
LOWlms/djangoapps/courseware/rules.py103CODE
LOWlms/djangoapps/courseware/courses.py369CODE
LOWlms/djangoapps/courseware/courses.py607CODE
LOWlms/djangoapps/courseware/courses.py642CODE
LOWlms/djangoapps/courseware/courses.py747CODE
LOWlms/djangoapps/courseware/courses.py1022CODE
LOWlms/djangoapps/courseware/courses.py1048CODE
LOWlms/djangoapps/courseware/user_state_client.py398CODE
LOWlms/djangoapps/courseware/user_state_client.py500CODE
LOW…/djangoapps/courseware/tests/test_user_state_client.py645CODE
LOWlms/djangoapps/courseware/tests/tests.py49CODE
418 more matches not shown…
Excessive Try-Catch Wrapping400 hits · 385 pts
SeverityFileLineSnippetContext
LOWlms/djangoapps/commerce/signals.py48 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/commerce/utils.py197 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/commerce/utils.py483 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/commerce/api/v0/views.py83 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/edxnotes/views.py260 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/grades/score_render.py38 except Exception as e:CODE
LOWlms/djangoapps/grades/tasks.py108 except Exception as exc:CODE
LOWlms/djangoapps/grades/tasks.py247 except Exception as exc:CODE
LOWlms/djangoapps/grades/course_grade_factory.py114 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/grades/events.py173 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/grades/signals/handlers.py441 except Exception as e:CODE
LOW⚡lms/djangoapps/program_enrollments/signals.py39 except Exception as e:CODE
LOW…lments/management/commands/link_program_enrollments.py82 except Exception as e:CODE
MEDIUM…lments/management/commands/link_program_enrollments.py72def handle(self, program_uuid, user_items, *args, **options):CODE
LOWlms/djangoapps/program_enrollments/api/linking.py295 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/instructor_task/api_helper.py467 except Exception as error: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/instructor_task/api_helper.py509 except Exception as error: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/instructor_task/api_helper.py531 except Exception as error: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/instructor_task/subtasks.py576 except Exception:CODE
LOWlms/djangoapps/instructor_task/notifications.py61 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/instructor_task/tasks_helper/misc.py336 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/instructor_task/tasks_helper/misc.py386 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/bulk_email/tasks.py303 except Exception:CODE
LOWlms/djangoapps/bulk_email/tasks.py686 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/bulk_email/tasks.py815 except Exception as retry_exc: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/ora_staff_grader/views.py143 except Exception as ex:CODE
LOWlms/djangoapps/ora_staff_grader/views.py239 except Exception as ex:CODE
LOWlms/djangoapps/ora_staff_grader/views.py306 except Exception as ex:CODE
LOWlms/djangoapps/ora_staff_grader/views.py363 except Exception as ex:CODE
LOWlms/djangoapps/ora_staff_grader/views.py408 except Exception as ex:CODE
LOWlms/djangoapps/ora_staff_grader/views.py501 except Exception as ex:CODE
LOWlms/djangoapps/ora_staff_grader/views.py556 except Exception as ex:CODE
LOWlms/djangoapps/ora_staff_grader/views.py589 except Exception as ex:CODE
LOWlms/djangoapps/ora_staff_grader/views.py638 except Exception as ex:CODE
MEDIUMlms/djangoapps/ora_staff_grader/views.py110def get(self, request, ora_location, *args, **kwargs):CODE
MEDIUMlms/djangoapps/ora_staff_grader/views.py279def get(self, request, ora_location, submission_uuid, *args, **kwargs):CODE
MEDIUMlms/djangoapps/ora_staff_grader/views.py340def get(self, request, ora_location, submission_uuid, *args, **kwargs):CODE
MEDIUMlms/djangoapps/ora_staff_grader/views.py391def get(self, request, ora_location, submission_uuid, *args, **kwargs):CODE
LOWlms/djangoapps/courseware/block_render.py279 except Exception as ex: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/courseware/block_render.py990 except Exception:STRING
LOWlms/djangoapps/courseware/courses.py441 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/courseware/courses.py510 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/courseware/courses.py862 except Exception as err: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/courseware/courses.py1120 except Exception: # pylint: disable=broad-exceptCODE
LOW…apps/courseware/management/commands/xblock_list_csv.py160 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/courseware/views/views.py545 except Exception as exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/courseware/views/views.py1320 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/ccx/api/v2/views.py206 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/support/tasks.py73 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/support/tasks.py135 except Exception as e: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/support/rest_api/v1/views.py519 except Exception as exc: # pylint: disable=broad-except # noqa: F841CODE
LOWlms/djangoapps/support/rest_api/v1/views.py553 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/bulk_user_retirement/views.py79 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/verify_student/tasks.py130 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/verify_student/models.py792 except Exception as e: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/verify_student/models.py816 except Exception as e: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/verify_student/models.py892 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/verify_student/emails.py36 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/verify_student/emails.py62 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/verify_student/utils.py27 except Exception as error: # pylint: disable=broad-exceptCODE
340 more matches not shown…
Decorative Section Separators88 hits · 297 pts
SeverityFileLineSnippetContext
MEDIUM⚡openedx/core/djangoapps/enrollments/v2/view_services.py74 # ------------------------------------------------------------------COMMENT
MEDIUM⚡openedx/core/djangoapps/enrollments/v2/view_services.py76 # ------------------------------------------------------------------COMMENT
MEDIUM⚡openedx/core/djangoapps/enrollments/v2/view_services.py98 # ------------------------------------------------------------------COMMENT
MEDIUM⚡openedx/core/djangoapps/enrollments/v2/view_services.py100 # ------------------------------------------------------------------COMMENT
MEDIUM⚡openedx/core/djangoapps/enrollments/v2/view_services.py285 # ------------------------------------------------------------------COMMENT
MEDIUM⚡openedx/core/djangoapps/enrollments/v2/view_services.py287 # ------------------------------------------------------------------COMMENT
MEDIUM⚡openedx/core/djangoapps/enrollments/v2/view_services.py316 # ------------------------------------------------------------------COMMENT
MEDIUM⚡openedx/core/djangoapps/enrollments/v2/view_services.py318 # ------------------------------------------------------------------COMMENT
MEDIUM⚡openedx/core/djangoapps/enrollments/v2/views.py142# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡openedx/core/djangoapps/enrollments/v2/views.py144# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡openedx/core/djangoapps/enrollments/v2/views.py171# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡openedx/core/djangoapps/enrollments/v2/views.py173# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡openedx/core/djangoapps/enrollments/v2/views.py205# ===========================================================================COMMENT
MEDIUM⚡openedx/core/djangoapps/enrollments/v2/views.py207# ===========================================================================COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py92# ---------------------------------------------------------------------------COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py94# ---------------------------------------------------------------------------COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py253 # ------------------------------------------------------------------COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py255 # ------------------------------------------------------------------COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py303 # ------------------------------------------------------------------COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py305 # ------------------------------------------------------------------COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py340 # ------------------------------------------------------------------COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py342 # ------------------------------------------------------------------COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py373 # ------------------------------------------------------------------COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py375 # ------------------------------------------------------------------COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py440# ===========================================================================COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py442# ===========================================================================COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py518# ===========================================================================COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py520# ===========================================================================COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py592# ===========================================================================COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py594# ===========================================================================COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py642# ===========================================================================COMMENT
MEDIUMopenedx/core/djangoapps/enrollments/v2/views.py644# ===========================================================================COMMENT
MEDIUM⚡…edx/core/djangoapps/enrollments/v2/tests/test_views.py79# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…edx/core/djangoapps/enrollments/v2/tests/test_views.py81# ---------------------------------------------------------------------------COMMENT
MEDIUM…edx/core/djangoapps/enrollments/v2/tests/test_views.py36# ---------------------------------------------------------------------------COMMENT
MEDIUM…edx/core/djangoapps/enrollments/v2/tests/test_views.py38# ---------------------------------------------------------------------------COMMENT
MEDIUM…edx/core/djangoapps/enrollments/v2/tests/test_views.py123# ---------------------------------------------------------------------------COMMENT
MEDIUM…edx/core/djangoapps/enrollments/v2/tests/test_views.py125# ---------------------------------------------------------------------------COMMENT
MEDIUM…edx/core/djangoapps/enrollments/v2/tests/test_views.py151# ---------------------------------------------------------------------------COMMENT
MEDIUM…edx/core/djangoapps/enrollments/v2/tests/test_views.py153# ---------------------------------------------------------------------------COMMENT
MEDIUM…edx/core/djangoapps/enrollments/v2/tests/test_views.py200# ---------------------------------------------------------------------------COMMENT
MEDIUM…edx/core/djangoapps/enrollments/v2/tests/test_views.py202# ---------------------------------------------------------------------------COMMENT
MEDIUM…edx/core/djangoapps/enrollments/v2/tests/test_views.py241# ---------------------------------------------------------------------------COMMENT
MEDIUM…edx/core/djangoapps/enrollments/v2/tests/test_views.py243# ---------------------------------------------------------------------------COMMENT
MEDIUM…edx/core/djangoapps/enrollments/v2/tests/test_views.py293# ---------------------------------------------------------------------------COMMENT
MEDIUM…edx/core/djangoapps/enrollments/v2/tests/test_views.py295# ---------------------------------------------------------------------------COMMENT
MEDIUM…edx/core/djangoapps/content_libraries/api/libraries.py243# ============COMMENT
MEDIUM…ore/djangoapps/content_libraries/rest_api/libraries.py688# ====================COMMENT
MEDIUM…/contentstore/xblock_storage_handlers/view_handlers.py342# ---------------------------------------------------------------------------COMMENT
MEDIUM…/contentstore/xblock_storage_handlers/view_handlers.py346# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡cms/djangoapps/contentstore/views/tests/test_block.py4210 # ------------------------------------------------------------------COMMENT
MEDIUM⚡cms/djangoapps/contentstore/views/tests/test_block.py4212 # ------------------------------------------------------------------COMMENT
MEDIUM⚡cms/djangoapps/contentstore/views/tests/test_block.py4232 # ------------------------------------------------------------------COMMENT
MEDIUM⚡cms/djangoapps/contentstore/views/tests/test_block.py4234 # ------------------------------------------------------------------COMMENT
MEDIUM⚡cms/djangoapps/contentstore/views/tests/test_block.py4245 # ------------------------------------------------------------------COMMENT
MEDIUM⚡cms/djangoapps/contentstore/views/tests/test_block.py4247 # ------------------------------------------------------------------COMMENT
MEDIUMcms/djangoapps/contentstore/rest_api/v1/views/xblock.py61# ---------------------------------------------------------------------------COMMENT
MEDIUMcms/djangoapps/contentstore/rest_api/v1/views/xblock.py63# ---------------------------------------------------------------------------COMMENT
MEDIUM…ntstore/rest_api/v1/views/tests/test_xblock_viewset.py41# ---------------------------------------------------------------------------COMMENT
MEDIUM…ntstore/rest_api/v1/views/tests/test_xblock_viewset.py43# ---------------------------------------------------------------------------COMMENT
28 more matches not shown…
Docstring Block Structure47 hits · 235 pts
SeverityFileLineSnippetContext
HIGHlms/djangoapps/grades/rest_api/v1/utils.py63 Returns a single USER_MODEL object corresponding to either the user_id provided, or if no id is provided, STRING
HIGHlms/djangoapps/instructor_analytics/basic.py91 Allow site operators to include custom fields in student profile exports. This function enables platforms withSTRING
HIGHlms/djangoapps/program_enrollments/api/reading.py403 Given an organization_key and a set of external keys, return a dict from external user keys to Users. ArgsSTRING
HIGHlms/djangoapps/program_enrollments/api/reading.py448 Given a program and a set of external keys, return a dict from external user keys to Users. Args: STRING
HIGHlms/djangoapps/instructor_task/api.py627 Request to have student enrollment operations processed as a background task. The task will process a batch ofSTRING
HIGHlms/djangoapps/certificates/api.py1182 Creates a new `GeneratedCertificate` object using the provided arguments. Args: cert_args (dict): A diSTRING
HIGHlms/djangoapps/verify_student/views.py1167 GET /verify_student/status/ Parameters: None Returns: 200 OK { "status": StriSTRING
HIGHlms/djangoapps/discussion/views.py442 Loads the discussion thread with the specified ID and fires an edx.forum.thread.viewed event. Args: STRING
HIGH…s/djangoapps/discussion/django_comment_client/utils.py936 Args: course_key: CourseKey commentable_id: string course_discussion_settings: CourseDiscusSTRING
HIGHlms/djangoapps/discussion/rest_api/api.py281 Return general discussion information for the course. Parameters: request: The django request object STRING
HIGHlms/djangoapps/discussion/rest_api/api.py519 Returns the course topic listing for the given course and user; filtered by 'topic_ids' list if given. ParSTRING
HIGHlms/djangoapps/discussion/rest_api/api.py672 Returns the course topic listing for the given course and user; filtered by 'topic_ids' list if given. ParSTRING
HIGHlms/djangoapps/discussion/rest_api/api.py915 Return the list of all discussion threads pertaining to the given course Parameters: request: The django STRING
HIGHlms/djangoapps/instructor/views/api.py1092 Handles POST request to list instructors and staff. Args: request (HttpRequest): The requeSTRING
HIGHlms/djangoapps/instructor/views/api.py1179 Handles POST request to list course enrollments. Args: request (HttpRequest): The request STRING
HIGHlms/djangoapps/instructor/views/api.py3088 Handle the POST request to list forum members with a certain role name for the given course. Args: STRING
HIGHopenedx/core/djangoapps/commerce/utils.py103 Retrieves OAuth 2.0 access token using the given grant type. Args: url (str): Oauth2 access token endpSTRING
HIGHopenedx/core/djangoapps/credit/models.py253 Get the credit course if exists for the given 'course_key'. Args: course_key(CourseKey): TSTRING
HIGHopenedx/core/djangoapps/credit/api/eligibility.py43 Add requirements to given course. Args: course_key(CourseKey): The identifier for course requiSTRING
HIGHopenedx/core/djangoapps/enrollments/api.py25Retrieves all the courses in which user is enrolled in a verified mode. Takes a user and retrieves all relative enrSTRING
HIGHopenedx/core/djangoapps/enrollments/api.py78Retrieves all the courses a user is enrolled in. Takes a user and retrieves all relative enrollments. Includes infoSTRING
HIGHopenedx/core/djangoapps/enrollments/data.py103Based on the course id, return all user enrollments in the course Args: course_key (CourseKey): Identifier oSTRING
HIGHopenedx/core/djangoapps/enrollments/data.py119Create a new course enrollment for the given user. Creates a new course enrollment for the specified user username.STRING
HIGHopenedx/core/djangoapps/enrollments/data.py319Returns all course enrollment information for the given course. Based on the course id, return all related course iSTRING
HIGHopenedx/core/djangoapps/user_api/preferences/api.py38 Returns True if the user has preference with the specified key. Args: requesting_user (User): The userSTRING
HIGHopenedx/core/djangoapps/user_api/preferences/api.py63Returns the value of the user preference with the specified key. Args: requesting_user (User): The user reqSTRING
HIGHopenedx/core/djangoapps/user_api/preferences/api.py88Returns all user preferences as a JSON response. Args: requesting_user (User): The user requesting the userSTRING
HIGH…ps/user_api/management/tests/test_email_opt_in_list.py414Check the output of the report. Arguments: output (list): List of rows in the output CSV file. STRING
HIGHopenedx/core/djangoapps/user_api/accounts/api.py63Returns account information for a user serialized as JSON. Note: If `request.user.username` != `username`, STRING
HIGH…angoapps/django_comment_common/comment_client/utils.py88 Returns a CourseKey if the provided course_id is a valid string representation of a CourseKey. If course_id is STRING
HIGHopenedx/core/djangoapps/content_libraries/tasks.py670 Load learning package from a backup file in storage. Args: storage_path (str): The path toSTRING
HIGH…edx/core/djangoapps/content_libraries/api/libraries.py341 Check if the user has the specified permission for a content library. Args: library_key: The library kSTRING
HIGHopenedx/core/djangoapps/programs/tasks.py113 Get program uuids for which certificate to be revoked. Checks for existing learner certificates and filter outSTRING
HIGH…nedx/core/djangoapps/video_config/transcripts_utils.py259 Download transcripts from Youtube. Args: youtube_id: str, actual youtube_id of the video. videSTRING
HIGH…edx/core/djangoapps/user_authn/views/password_reset.py246Email a single-use link for performing a password reset. Users must confirm the password change before we update thSTRING
HIGHopenedx/core/lib/api/view_utils.py444 Validate and parse a course_key string, if supported. Args: course_key_string (str): string course keySTRING
HIGHcommon/djangoapps/track/views/segmentio.py251 Get the name of a SegmentIO event. Args: event_properties: dict The properties of the evenSTRING
HIGHcommon/djangoapps/util/password_policy_validators.py106 EdX's custom password validator for passwords. This function performs the following functions: 1) NormaSTRING
HIGHcommon/djangoapps/third_party_auth/pipeline.py291Gets a saved user authenticated by a particular backend. Between pipeline steps User objects are not saved. We needSTRING
HIGHcommon/djangoapps/third_party_auth/pipeline.py356Gets URL for the endpoint that returns control to the auth pipeline. Args: backend_name: string. Name of thSTRING
HIGHcommon/djangoapps/third_party_auth/pipeline.py375Gets URL for the endpoint that starts the disconnect pipeline. Args: provider_id: string identifier of the STRING
HIGHcommon/djangoapps/third_party_auth/pipeline.py400Gets the login URL for the endpoint that kicks off auth with a provider. Args: provider_id: string identifiSTRING
HIGHcms/djangoapps/contentstore/views/course.py934 Resolve candidate course keys from legacy ``CourseAccessRole`` records. Only database-backed legacy roles are STRING
HIGHscripts/user_retirement/utils/jenkins.py114 Trigger a jenkins job/project (note that jenkins uses these terms interchangeably) Args: base_url (strSTRING
HIGH…user_retirement/utils/thirdparty_apis/amplitude_api.py54 This function send an API request to delete user from Amplitude. It then parse the response and try agaSTRING
HIGHxmodule/partitions/partitions_service.py163 If the user is already assigned to a group in user_partition_id, return the group_id. If not, STRING
HIGHxmodule/modulestore/mongo/base.py1029 Creates and returns the course. Args: org (str): the organization that owns the course STRING
Redundant / Tautological Comments134 hits · 211 pts
SeverityFileLineSnippetContext
LOW⚡lms/djangoapps/commerce/api/v0/tests/test_views.py224 # Set SKU to empty string for all modes.COMMENT
LOWlms/djangoapps/edxnotes/tests.py1229 # Set state to the _COMPLETE version of an arbitrary "SOMETHING" state.COMMENT
LOW⚡lms/djangoapps/instructor_analytics/tests/test_basic.py119 # Check if list_problem_responses called UsageKey.from_string to look up problem key:COMMENT
LOW⚡lms/djangoapps/instructor_analytics/tests/test_basic.py121 # Check if list_problem_responses called StudentModule.objects.filter to obtain relevant records:COMMENT
LOW⚡lms/djangoapps/instructor_analytics/tests/test_basic.py126 # Check if list_problem_responses returned expected results:COMMENT
LOWlms/djangoapps/program_enrollments/rest_api/v1/views.py714 # Check if the user is a course staff of any course which is a part of a program.COMMENT
LOW…/djangoapps/instructor_task/tests/test_tasks_helper.py286 # Assign user_a to a group in the 'cohort'-schemed userCOMMENT
LOW⚡lms/djangoapps/experiments/flags.py213 # Check if we have a cache for this request alreadyCOMMENT
LOW⚡lms/djangoapps/experiments/flags.py219 # Check if the main flag is even enabled for this user and course.COMMENT
LOW⚡lms/djangoapps/experiments/flags.py223 # Check if the enrollment should even be considered (if it started before the experiment wants, we ignore)COMMENT
LOWlms/djangoapps/certificates/api.py1198 # Check if all required fields are presentCOMMENT
LOW…urseware/management/commands/tests/test_dump_course.py159 # Check if there are the right number of elementsCOMMENT
LOW⚡…urseware/management/commands/tests/test_dump_course.py209 # Check if some of the files are present.COMMENT
LOWlms/djangoapps/ccx/utils.py343 # Check if user has staff role on ccx.COMMENT
LOWlms/djangoapps/verify_student/views.py777 # Check if there are more than 1 paid(mode with min_price>0 e.g verified/professional/no-id-professional) modesCOMMENT
LOW…oapps/discussion/rest_api/discussions_notifications.py230 # Check if the subscriber is not the thread creator or response creatorCOMMENT
LOWlms/djangoapps/instructor/settings/devstack.py6 # Set this to the dashboard URL in order to display the link from theCOMMENT
LOWlms/djangoapps/instructor/tests/test_certificates.py1224 # Check if the generated certificate was invalidatedCOMMENT
LOW⚡lms/djangoapps/instructor/views/api_v2.py2046 # Check if user is enrolledCOMMENT
LOW⚡lms/djangoapps/instructor/views/api_v2.py2054 # Check if user already has an exceptionCOMMENT
LOW⚡lms/djangoapps/instructor/views/api_v2.py2062 # Check if user has an active invalidationCOMMENT
LOWlms/djangoapps/instructor/views/api_v2.py1136 # Check if the problem actually exists in the modulestoreCOMMENT
LOWlms/djangoapps/instructor/views/api_v2.py1789 # Check if certificate generation is enabled (not available for CCX courses)COMMENT
LOWlms/djangoapps/instructor/views/api_v2.py2116 # Check if certificate existsCOMMENT
LOWlms/djangoapps/instructor/views/api_v2.py2174 # Check if file was uploadedCOMMENT
LOWlms/djangoapps/instructor/views/serializers_v2.py530 # Check if certificate generation is enabled (not available for CCX courses)COMMENT
LOWlms/djangoapps/instructor/views/instructor_dashboard.py189 # Check if there is corresponding entry in the CourseMode Table related to the Instructor Dashboard courseCOMMENT
LOWlms/djangoapps/instructor/views/api.py955 # Check if student is already enrolledCOMMENT
LOWlms/djangoapps/instructor/views/api.py3937 # Check if the learner is actively enrolled in the course-runCOMMENT
LOWlms/djangoapps/instructor/views/api.py3944 # Check if the learner is blocked from receiving certificates in this course run.COMMENT
LOWlms/djangoapps/instructor/views/api.py4312 # Check if the learner already appears on the certificate invalidation listCOMMENT
LOWlms/djangoapps/instructor/views/serializer.py404 # Iterate over the list of identifiers and validate each oneCOMMENT
LOWlms/templates/dashboard.html165 # Check if the course run is an entitlement and if it has an associated sessionCOMMENT
LOWopenedx/core/djangoapps/credit/api/provider.py219 # Check if we've enabled automatic integration with the creditCOMMENT
LOWopenedx/core/djangoapps/xblock/rest_api/views.py97 # Check if a specific version has been requested. TODO: move this to a URL path param like the other views?COMMENT
LOWopenedx/core/djangoapps/enrollments/views.py773 # Check if the requested activation status is None or a BooleanCOMMENT
LOWopenedx/core/djangoapps/enrollments/views.py795 # Check if the force enrollment status is None or a BooleanCOMMENT
LOWopenedx/core/djangoapps/content_tagging/auth.py68 # Check if toggle is activeCOMMENT
LOW…core/djangoapps/content_tagging/tests/test_handlers.py93 # Check if the tags are deletedCOMMENT
LOW…core/djangoapps/content_tagging/tests/test_handlers.py121 # Check if the tags are still present for the Library BlockCOMMENT
LOW⚡…goapps/content_tagging/rest_api/v1/tests/test_views.py2534 # Check if the taxonomy was createdCOMMENT
LOW⚡…goapps/content_tagging/rest_api/v1/tests/test_views.py2540 # Check if the tags were createdCOMMENT
LOW⚡…goapps/content_tagging/rest_api/v1/tests/test_views.py2548 # Check if the taxonomy was no association with orgsCOMMENT
LOW⚡…goapps/content_tagging/rest_api/v1/tests/test_views.py2581 # Check if the taxonomy was createdCOMMENT
LOW⚡…goapps/content_tagging/rest_api/v1/tests/test_views.py2587 # Check if the tags were createdCOMMENT
LOW⚡…goapps/content_tagging/rest_api/v1/tests/test_views.py2595 # Check if the taxonomy was associated with the orgACOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2617 # Check if the taxonomy was not createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2705 # Check if the taxonomy was not createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2736 # Check if the taxonomy was not createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2759 # Check if the taxonomy was not createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2786 # Check if the taxonomy was not createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2815 # Check if the taxonomy was not createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2868 # Check if the tags were createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2890 # Check if the taxonomy was not changedCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2913 # Check if the taxonomy was not changedCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2945 # Check if the taxonomy was not changedCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2982 # Check if the taxonomy has no tags, since it is free textCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py3014 # Check if the taxonomy was not changedCOMMENT
LOW…enedx/core/djangoapps/embargo/tests/test_middleware.py62 # Add the course to the list of restricted coursesCOMMENT
LOW…/management/commands/cancel_user_retirement_request.py42 # Check if the user has started the retirement process -or- not.COMMENT
74 more matches not shown…
Fake / Example Data202 hits · 200 pts
SeverityFileLineSnippetContext
LOW⚡lms/djangoapps/commerce/tests/test_signals.py267 def call_create_zendesk_ticket(self, name='Test user', email='user@example.com', subject='Test Ticket',CODE
LOWlms/djangoapps/commerce/tests/test_signals.py298 email = 'user@example.com'CODE
LOW…/djangoapps/instructor_task/tests/test_tasks_helper.py1551 self._create_enrollment('user@example.com')CODE
LOWlms/djangoapps/instructor_task/tests/test_tasks.py89 'user_id': 'dummy_id',CODE
LOW⚡lms/djangoapps/bulk_email/tests/test_err_handling.py270 to_list = ['test@test.com']CODE
LOW⚡lms/djangoapps/bulk_email/tests/test_err_handling.py282 to_list = ['test@test.com']CODE
LOW⚡lms/djangoapps/bulk_email/tests/test_err_handling.py301 to_list = ['test@test.com']CODE
LOW⚡lms/djangoapps/bulk_email/tests/test_err_handling.py317 to_list = ['test@test.com']CODE
LOW⚡lms/djangoapps/bulk_email/tests/test_err_handling.py331 to_list = ['test@test.com']CODE
LOW⚡lms/djangoapps/bulk_email/tests/test_err_handling.py350 to_list = ['test@test.com']CODE
LOW⚡lms/djangoapps/bulk_email/tests/test_err_handling.py362 to_list = ['test@test.com']CODE
LOW⚡lms/djangoapps/courseware/tests/test_tabs.py535 {'type': 'discussion', 'name': 'fake_name'},CODE
LOW⚡lms/djangoapps/courseware/tests/test_tabs.py536 {'type': ExternalLinkCourseTab.type, 'name': 'fake_name', 'link': 'fake_link'},CODE
LOW⚡lms/djangoapps/courseware/tests/test_tabs.py537 {'type': ExternalLinkCourseTab.type, 'name': 'fake_name', 'link': 'fake_link'},CODE
LOW⚡lms/djangoapps/courseware/tests/test_tabs.py541 {'type': ProgressTab.type, 'name': 'fake_name'},CODE
LOW⚡lms/djangoapps/courseware/tests/test_tabs.py542 {'type': xmodule_tabs.StaticTab.type, 'name': 'fake_name', 'url_slug': 'schlug'},CODE
LOW⚡lms/djangoapps/courseware/tests/test_tabs.py548 {'type': ExternalDiscussionCourseTab.type, 'name': 'fake_name', 'link': 'fake_link'}CODE
LOWlms/djangoapps/courseware/tests/test_tabs.py60 cls.fake_dict_tab = {'fake_key': 'fake_value'}CODE
LOWlms/djangoapps/courseware/tests/test_tabs.py148 assert tab != {'fake_key': 'fake_value'}CODE
LOWlms/djangoapps/courseware/tests/test_tabs.py506 [{'type': 'discussion', 'name': 'fake_name'},CODE
LOW⚡lms/djangoapps/courseware/tests/test_block_render.py299 fake_key = 'fake key'CODE
LOW⚡lms/djangoapps/courseware/tests/test_block_render.py300 xqueue_header = json.dumps({'lms_key': fake_key})CODE
LOWlms/djangoapps/courseware/tests/test_block_render.py320 request.POST['queuekey'] = fake_keyCODE
LOWlms/djangoapps/courseware/views/views.py2245 'placeholder': '',CODE
LOWlms/djangoapps/courseware/views/views.py2262 'placeholder': '',CODE
LOWlms/djangoapps/courseware/views/views.py2274 'placeholder': '',CODE
LOWlms/djangoapps/courseware/views/views.py2286 'placeholder': '',CODE
LOW⚡lms/djangoapps/lti_provider/tests/test_users.py211 "John Doe",CODE
LOW⚡lms/djangoapps/lti_provider/tests/test_users.py216 "lis_person_name_full": "John Doe",CODE
LOW⚡lms/djangoapps/lti_provider/tests/test_users.py220 "John Doe",CODE
LOW⚡lms/djangoapps/lti_provider/tests/test_users.py223 {"lis_person_contact_email_primary": "some_email@example.com", "lis_person_name_full": "John Doe"},CODE
LOW⚡lms/djangoapps/lti_provider/tests/test_users.py225 "John Doe",CODE
LOW⚡lms/djangoapps/lti_provider/tests/test_users.py316 "full_name": "John Doe",CODE
LOW⚡lms/djangoapps/lti_provider/tests/test_users.py321 assert lti_user.edx_user.profile.name == "John Doe"CODE
LOW⚡lms/djangoapps/lti_provider/tests/test_users.py327 "full_name": "John Doe",CODE
LOW⚡lms/djangoapps/lti_provider/tests/test_users.py331 assert lti_user.edx_user.profile.name == "John Doe"CODE
LOW⚡lms/djangoapps/lti_provider/tests/test_users.py337 "full_name": "John Doe",CODE
LOW⚡lms/djangoapps/lti_provider/tests/test_users.py342 assert lti_user.edx_user.profile.name == "John Doe"CODE
LOWlms/djangoapps/discussion/rest_api/tests/test_api_v2.py182 "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. "CODE
LOWlms/djangoapps/discussion/rest_api/tests/test_api_v2.py182 "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. "CODE
LOWlms/djangoapps/instructor/enrollment.py144 `student_email` is student's emails e.g. "foo@bar.com"STRING
LOWlms/djangoapps/instructor/enrollment.py211 `student_email` is student's emails e.g. "foo@bar.com"STRING
LOWlms/djangoapps/instructor/tests/test_enrollment.py1003 email_params["email_address"] = "user@example.com"CODE
LOWlms/djangoapps/instructor/tests/test_enrollment.py1019 email_params["email_address"] = "user@example.com"CODE
LOWlms/djangoapps/instructor/tests/test_api_v2.py1699 ('student1', 'John Doe', 'john@example.com', mock_location, extended_date),CODE
LOWlms/djangoapps/instructor/tests/test_api_v2.py1740 ('student1', 'John Doe', extended_date, 'john@example.com', mock_unit.location),CODE
LOWlms/djangoapps/instructor/tests/test_api_v2.py1757 self.assertEqual(data['full_name'], 'John Doe') # noqa: PT009CODE
LOWlms/djangoapps/instructor/tests/test_api_v2.py1797 ('student1', 'John Doe', extended_date, 'john@example.com', mock_unit.location),CODE
LOWlms/djangoapps/instructor/tests/test_api_v2.py1819 self.assertEqual(data['full_name'], 'John Doe') # noqa: PT009CODE
LOWlms/djangoapps/instructor/tests/test_api_v2.py1845 ('student1', 'John Doe', 'john@example.com', mock_location, extended_date),CODE
LOWlms/djangoapps/instructor/tests/test_api_v2.py1915 ('student1', 'John Doe', 'john@example.com', mock_location, extended_date),CODE
LOW⚡lms/djangoapps/instructor/tests/utils.py104 def __init__(self, fake_email, num_sent, num_failed):CODE
LOW⚡lms/djangoapps/instructor/tests/utils.py106 self.created = fake_email.created.strftime("%Y-%m-%dT%H:%M:%SZ")CODE
LOW⚡lms/djangoapps/instructor/tests/utils.py113 fake_email_dict = fake_email.to_dict()CODE
LOWlms/djangoapps/instructor/tests/test_api.py429 {'identifiers': 'foo@example.org', 'action': 'enroll'}),CODE
LOWlms/djangoapps/instructor/tests/test_api.py467 ('bulk_beta_modify_access', {'identifiers': 'foo@example.org', 'action': 'add'}),CODE
LOWlms/djangoapps/instructor/tests/test_proctoring.py156 ('test_proctoring_provider', 'foo@bar.com')CODE
LOWlms/djangoapps/instructor/tests/test_proctoring.py183 self.setup_course_with_proctoring_backend('test_proctoring_provider', 'foo@bar.com')CODE
LOWlms/djangoapps/instructor/tests/test_proctoring.py202 self.setup_course_with_proctoring_backend('lti_external', 'foo@bar.com')CODE
LOWlms/djangoapps/instructor/views/api_v2.py574 "full_name": "John Doe",STRING
142 more matches not shown…
AI Slop Vocabulary84 hits · 156 pts
SeverityFileLineSnippetContext
MEDIUMlms/djangoapps/commerce/tests/mocks.py65 """Helper used to create callbacks in order to have httpretty raise Exceptions."""STRING
MEDIUMlms/djangoapps/branding/api.py476 # to the footer logo rather than use the comprehensive theming system.COMMENT
LOW⚡lms/djangoapps/instructor_task/models.py146 # will fit in the column. In the meantime, just return an exception.COMMENT
LOWlms/djangoapps/bulk_email/tasks.py158 # So we just return right away. We don't raise an exception, because we wantCOMMENT
LOWlms/djangoapps/bulk_email/api.py167 # The currencies do not affect user lookup though, so we can just use the first result.COMMENT
LOWlms/djangoapps/course_blocks/transformers/utils.py124 # no parents so just use value on block or defaultCOMMENT
LOWlms/djangoapps/courseware/tabs.py355 # We can't switch this function to just use the CourseTabPluginManager withoutCOMMENT
MEDIUMlms/djangoapps/courseware/courses.py186 # to a course. (Essentially check this AND check that AND...)COMMENT
LOWlms/djangoapps/courseware/user_state_client.py426 # Anonymous users cannot be persisted to the database, so let's just useCOMMENT
MEDIUM…ngoapps/courseware/tests/test_comprehensive_theming.py1"""Tests of comprehensive theming."""STRING
MEDIUM…ngoapps/courseware/tests/test_comprehensive_theming.py17 """Test comprehensive theming."""STRING
MEDIUM…ourse_goals/management/commands/goal_reminder_email.py304 # Essentially, if today is Sunday, days_left_in_week should be 1 since they have Sunday to hit their goal.COMMENT
MEDIUM⚡lms/djangoapps/teams/tests/test_views.py2797 """Test that team creation is robust to Elasticsearch errors."""STRING
MEDIUM⚡lms/djangoapps/teams/tests/test_views.py2806 """Test that team deletion is robust to Elasticsearch errors."""STRING
MEDIUM⚡lms/djangoapps/teams/tests/test_views.py2811 """Test that team updates are robust to Elasticsearch errors."""STRING
MEDIUMlms/djangoapps/teams/tests/test_views.py2775 """Test that the Team API is robust to Elasticsearch connection errors."""STRING
LOWlms/djangoapps/discussion/rest_api/api.py981 # so just return an empty response.COMMENT
LOWlms/djangoapps/discussion/rest_api/views.py1204 # we can just pass those up.COMMENT
MEDIUM…goapps/course_wiki/tests/test_comprehensive_theming.py21 """Tests for comprehensive theming of wiki pages."""STRING
LOW…ates/instructor/instructor_dashboard_2/send_email.html56 ## If there's only 1 course mode, everyone is in it and you should just use "All Learners"COMMENT
MEDIUMlms/templates/header/navbar-logo-header.html20 ## The navigation_logo block allows comprehensive themes to override the logo.COMMENT
LOWlms/envs/production.py298 # TODO: Would it be safe to just set this default in common.py, even if ENABLE_THIRD_PARTY_AUTH is False?COMMENT
LOWopenedx/core/djangoapps/xblock/api.py325 # We must return an absolute URL. We can't just useCOMMENT
LOWopenedx/core/djangoapps/xblock/utils.py161 # the key on the AnonymousUser object, just return that - it supersedesCOMMENT
LOW…e/djangoapps/xblock/runtime/openedx_content_runtime.py212 # should be removed and its parse_xml() method should be simplified to just call the super().parse_xml()COMMENT
LOWopenedx/core/djangoapps/xblock/runtime/shims.py272 # Studio always returned None so we just return None for now.COMMENT
LOW⚡openedx/core/djangoapps/embargo/tests/test_api.py162 # In order to simulate this behavior, we can't simply set `profile.country = None`.COMMENT
LOWopenedx/core/djangoapps/crawlers/models.py44 # then just return False.COMMENT
LOW…edx/core/djangoapps/content/course_overviews/models.py904 # If this is an absolute URL, just return it as is. It could be a domainCOMMENT
LOW⚡…ontent/course_overviews/tests/test_course_overviews.py866 # Since we're disabled, we should just return the raw source image backCOMMENT
LOWopenedx/core/djangoapps/models/course_details.py329 # Could just return jsondict w/o doing any db reads, but I putCOMMENT
LOW…edx/core/djangoapps/content_libraries/api/libraries.py648 # If nothing's changed, just return early.COMMENT
LOW…e/djangoapps/content_libraries/rest_api/serializers.py558 # If the task did not complete, just return the state.COMMENT
MEDIUM…x/core/djangoapps/content_libraries/rest_api/blocks.py509 # this response in conjunction with a media reverse proxy (Caddy or Nginx),COMMENT
LOWopenedx/core/djangoapps/dark_lang/middleware.py153 # User doesn't have a dark lang preference, so just returnCOMMENT
MEDIUMopenedx/core/djangoapps/programs/tasks.py345 # N.B. the list is sorted to facilitate deterministic ordering, e.g. for tests.COMMENT
LOWopenedx/core/djangoapps/site_configuration/helpers.py147 # If the dictionary update fails, just use the configuration valueCOMMENT
MEDIUMopenedx/core/djangoapps/theming/checks.py28 # Only perform checks when comprehensive theming is enabled.COMMENT
MEDIUMopenedx/core/djangoapps/theming/tests/test_helpers.py26 """Test comprehensive theming helper functions."""STRING
MEDIUM⚡openedx/core/djangoapps/theming/tests/test_helpers.py122 """Test comprehensive theming helper functions."""STRING
LOWopenedx/core/djangoapps/api_admin/views.py292 # Ensure that we don't just return all the courses if no query is givenCOMMENT
LOWopenedx/core/lib/tests/test_request_utils.py62 # If ALLOWED_HOSTS is set properly, and the host is valid, we just return the user-provided hostCOMMENT
LOWopenedx/features/content_type_gating/field_override.py32 # We cannot simply call "block.group_access" to fetch that value even if we disableCOMMENT
LOW…enedx/features/effort_estimation/block_transformers.py89 # Rather than attempt to work around it, just set a note for ourselves to not show durations for thisCOMMENT
MEDIUMopenedx/envs/common.py91 # Add locale paths to settings for comprehensive theming.COMMENT
MEDIUMopenedx/envs/common.py2109# The following Django settings flags have been introduced temporarily to facilitateCOMMENT
MEDIUMopenedx/envs/common.py2484# be searched for comprehensive themes. Do not override this Django setting directly.COMMENT
LOWcommon/djangoapps/track/middleware.py89 ## should just return a 500 here: (1) This will translateCOMMENT
MEDIUMcommon/djangoapps/track/tests/__init__.py44 # Make this more robust to the addition of new events that the test doesn't care about.COMMENT
MEDIUMcommon/djangoapps/student/models/course_enrollment.py292# Named tuple for fields pertaining to the state ofCOMMENT
MEDIUMcommon/djangoapps/third_party_auth/dummy.py18 """ Get the URL to which we must redirect in order to authenticate the user """STRING
MEDIUM⚡common/djangoapps/third_party_auth/tests/specs/base.py271 """Verify that the user was redirected in order to set the logged in cookie."""STRING
LOWcms/djangoapps/contentstore/git_export_utils.py195 # That's ok, just use default identCOMMENT
MEDIUM⚡cms/djangoapps/contentstore/asset_storage_handlers.py604 # using the 'filename' nomenclature since we're using a FileSystem paradigmCOMMENT
MEDIUMcms/djangoapps/contentstore/asset_storage_handlers.py565 # using the 'filename' nomenclature since we're using a FileSystem paradigmCOMMENT
LOW…ngoapps/contentstore/core/course_optimizer_provider.py64 # Wasn't JSON, just use the value as a stringCOMMENT
LOW…ngoapps/contentstore/core/course_optimizer_provider.py645 # If no artifact found or invalid JSON, just return empty resultsCOMMENT
MEDIUMcms/djangoapps/contentstore/signals/handlers.py1""" receivers of course_published and library_updated events in order to trigger indexing task """STRING
LOWcms/djangoapps/contentstore/tests/test_contentstore.py727 # Query get_items() and find the html item. This should just return back a single item (not 2).COMMENT
MEDIUM…tentstore/management/commands/tests/test_export_olx.py93 """wrapper to facilitate operations with a BytesIO as a buffer"""STRING
24 more matches not shown…
Modern Structural Boilerplate104 hits · 106 pts
SeverityFileLineSnippetContext
LOW…pps/commerce/management/commands/configure_commerce.py13logger = logging.getLogger(__name__) # pylint: disable=invalid-nameCODE
LOWlms/djangoapps/program_enrollments/signals.py20logger = logging.getLogger(__name__)CODE
LOW…ents/management/commands/expire_waiting_enrollments.py10logger = logging.getLogger(__name__)CODE
LOWlms/djangoapps/program_enrollments/api/grades.py16logger = logging.getLogger(__name__)CODE
LOWlms/djangoapps/program_enrollments/api/writing.py26logger = logging.getLogger(__name__)CODE
LOWlms/djangoapps/program_enrollments/api/linking.py23logger = logging.getLogger(__name__)CODE
LOWlms/djangoapps/instructor_task/models.py35logger = logging.getLogger(__name__)CODE
LOWlms/djangoapps/experiments/utils.py29logger = logging.getLogger(__name__)CODE
LOW…angoapps/course_blocks/transformers/library_content.py26logger = logging.getLogger(__name__)CODE
LOWlms/djangoapps/support/views/enrollments.py38logger = logging.getLogger(__name__)CODE
LOWlms/djangoapps/course_api/api.py36logger = logging.getLogger(__name__) # pylint: disable=invalid-nameCODE
LOW…r_softwaresecurephotoverifications_post_save_signal.py14logger = logging.getLogger(__name__)CODE
LOW…/management/commands/send_verification_expiry_email.py30logger = logging.getLogger(__name__)CODE
LOWlms/djangoapps/teams/api.py23logger = logging.getLogger(__name__)CODE
LOWlms/djangoapps/learner_home/views.py56logger = logging.getLogger(__name__)CODE
LOWlms/djangoapps/instructor/tasks.py23def update_exam_completion_task(user_identifier: str, content_id: str, completion: float) -> None:CODE
LOWopenedx/core/djangoapps/catalog/utils.py38logger = logging.getLogger(__name__)CODE
LOW…angoapps/catalog/management/commands/cache_programs.py34logger = logging.getLogger(__name__)CODE
LOW…djangoapps/user_api/management/commands/retire_user.py12logger = logging.getLogger(__name__)CODE
LOWopenedx/core/djangoapps/user_api/accounts/signals.py13logger = logging.getLogger(__name__)CODE
LOWopenedx/core/djangoapps/user_api/accounts/forms.py18logger = logging.getLogger(__name__)CODE
LOWopenedx/core/djangoapps/user_api/accounts/api.py55logger = logging.getLogger(__name__)CODE
LOW…/djangoapps/content/learning_sequences/api/outlines.py59__all__ = [CODE
LOWopenedx/core/djangoapps/content/search/tasks.py87def update_content_library_index_docs(library_key_str: str, full_index: bool = False) -> None:CODE
LOWopenedx/core/djangoapps/content/search/tasks.py100def update_library_collection_index_doc(collection_key_str: str) -> None:CODE
LOWopenedx/core/djangoapps/content/search/tasks.py113def update_library_components_collections(collection_key_str: str) -> None:CODE
LOWopenedx/core/djangoapps/content/search/tasks.py126def update_library_containers_collections(collection_key_str: str) -> None:CODE
LOWopenedx/core/djangoapps/content/search/tasks.py139def update_library_container_index_doc(container_key_str: str) -> None:CODE
LOWopenedx/core/djangoapps/content/search/api.py338def _update_index_docs(index_name: str, docs) -> None:CODE
LOWopenedx/core/djangoapps/content_libraries/api/backup.py19__all__ = ["create_library_v2_zip", "extract_library_v2_zip_to_dir"]CODE
LOW…dx/core/djangoapps/content_libraries/api/containers.py52__all__ = [CODE
LOW…edx/core/djangoapps/content_libraries/api/libraries.py84__all__ = [CODE
LOW…ore/djangoapps/content_libraries/api/block_metadata.py24__all__ = [CODE
LOW…x/core/djangoapps/content_libraries/api/collections.py20__all__ = [CODE
LOW…dx/core/djangoapps/content_libraries/api/exceptions.py11__all__ = [CODE
LOWopenedx/core/djangoapps/content_libraries/api/blocks.py79__all__ = [CODE
LOW…djangoapps/content_libraries/api/container_metadata.py32__all__ = [CODE
LOWopenedx/core/djangoapps/programs/rest_api/v1/views.py25logger = logging.getLogger(__name__)CODE
LOWopenedx/core/djangoapps/zendesk_proxy/v1/views.py17logger = logging.getLogger(__name__)CODE
LOW…admin/management/commands/create_api_access_request.py19logger = logging.getLogger(__name__)CODE
LOWopenedx/core/djangoapps/auth_exchange/views.py38logger = logging.getLogger(__name__)CODE
LOW⚡openedx/core/djangoapps/notifications/tasks.py253def update_account_user_preference(user_id: int) -> None:CODE
LOW…nedx/core/djangoapps/notifications/audience_filters.py31logger = logging.getLogger(__name__)CODE
LOW…cations/management/commands/fix_mixed_email_cadence.py12logger = logging.getLogger(__name__)CODE
LOW…ifications/management/commands/delete_notifications.py12logger = logging.getLogger(__name__)CODE
LOW…management/commands/update_notification_preferences.py12logger = logging.getLogger(__name__)CODE
LOW…spatch/management/commands/edx_clear_expired_tokens.py17logger = logging.getLogger(__name__)CODE
LOW…dispatch/management/commands/create_dot_application.py16logger = logging.getLogger(__name__)CODE
LOWopenedx/core/lib/api/mixins.py14__all__ = ["PutAsCreateMixin", "StandardizedErrorMixin"]CODE
LOWopenedx/core/lib/api/authentication.py20logger = logging.getLogger(__name__)CODE
LOWopenedx/core/lib/api/exceptions.py10__all__ = ["Conflict", "standardized_error_exception_handler"]CODE
LOWopenedx/features/course_experience/api/v1/utils.py15logger = logging.getLogger(__name__)CODE
LOWopenedx/features/calendar_sync/utils.py13logger = logging.getLogger(__name__)CODE
LOWopenedx/features/survey_report/api.py114def update_report(survey_report_id: int, data: dict) -> None:CODE
LOWcommon/djangoapps/track/tracker.py32__all__ = ['send']CODE
LOWcommon/djangoapps/util/models.py13logger = logging.getLogger(__name__) # pylint: disable=invalid-nameCODE
LOWcommon/djangoapps/util/storage.py9logger = logging.getLogger(__name__)CODE
LOWcommon/djangoapps/student/signals/receivers.py35logger = logging.getLogger(__name__) # noqa: F811CODE
LOW…/student/management/commands/unsubscribe_user_email.py9logger = logging.getLogger(__name__)CODE
LOW…nt/management/commands/retrieve_unsubscribed_emails.py14logger = logging.getLogger(__name__)CODE
44 more matches not shown…
AI Structural Patterns79 hits · 64 pts
SeverityFileLineSnippetContext
LOWlms/djangoapps/commerce/utils.py304CODE
LOW…s/grades/rest_api/v1/tests/test_grading_policy_view.py86CODE
LOWlms/djangoapps/program_enrollments/api/reading.py164CODE
LOWlms/djangoapps/program_enrollments/api/reading.py326CODE
LOW…ps/program_enrollments/rest_api/v1/tests/test_views.py1210CODE
LOWlms/djangoapps/instructor_task/tests/test_views.py250CODE
LOWlms/djangoapps/certificates/api.py565CODE
LOWlms/djangoapps/certificates/api.py1064CODE
LOWlms/djangoapps/courseware/block_render.py295CODE
LOWlms/djangoapps/courseware/block_render.py385CODE
LOWlms/djangoapps/courseware/block_render.py495CODE
LOWlms/djangoapps/courseware/models.py75CODE
LOWlms/djangoapps/courseware/tests/test_views.py2250CODE
LOWlms/djangoapps/courseware/tests/test_block_render.py631CODE
LOW…apps/courseware/management/commands/dump_course_ids.py26CODE
LOW…are/management/commands/dump_course_ids_with_filter.py35CODE
LOWlms/djangoapps/ccx/api/v0/views.py396CODE
LOWlms/djangoapps/mobile_api/users/tests.py338CODE
LOWlms/djangoapps/course_api/blocks/api.py19CODE
LOWlms/djangoapps/lti_provider/outcomes.py183CODE
LOWlms/djangoapps/verify_student/tests/test_views.py2048CODE
LOW…ngoapps/discussion/django_comment_client/base/views.py908CODE
LOWlms/djangoapps/discussion/tests/test_tasks_v2.py54CODE
LOWlms/djangoapps/discussion/rest_api/api.py898CODE
LOWlms/djangoapps/discussion/rest_api/views.py232CODE
LOWlms/djangoapps/discussion/rest_api/views.py1399CODE
LOWlms/djangoapps/discussion/rest_api/tests/test_api_v2.py2851CODE
LOWlms/djangoapps/instructor/tests/test_certificates.py1137CODE
LOWlms/djangoapps/instructor/tests/test_api.py5446CODE
LOW…goapps/instructor/tests/test_api_email_localization.py51CODE
LOW…djangoapps/course_home_api/outline/tests/test_goals.py66CODE
LOWopenedx/core/djangoapps/commerce/utils.py303CODE
LOWopenedx/core/djangoapps/xblock/rest_api/views.py240CODE
LOWopenedx/core/djangoapps/enrollments/tests/test_views.py52CODE
LOWopenedx/core/djangoapps/user_api/helpers.py136CODE
LOWopenedx/core/djangoapps/content/search/api.py1269CODE
LOW…ngoapps/django_comment_common/comment_client/models.py212CODE
LOW…ngoapps/django_comment_common/comment_client/models.py230CODE
LOW…ngoapps/django_comment_common/comment_client/models.py253CODE
LOW…ngoapps/django_comment_common/comment_client/models.py306CODE
LOWopenedx/core/djangoapps/content_libraries/tests/base.py449CODE
LOWopenedx/core/djangoapps/content_libraries/tests/base.py456CODE
LOW…enedx/core/djangoapps/site_configuration/middleware.py28CODE
LOW…enedx/core/djangoapps/waffle_utils/tests/test_views.py133CODE
LOWopenedx/core/djangoapps/oauth_dispatch/jwt.py137CODE
LOWopenedx/core/djangoapps/oauth_dispatch/tests/mixins.py20CODE
LOWopenedx/core/djangoapps/oauth_dispatch/tests/mixins.py46CODE
LOWopenedx/core/lib/request_utils.py119CODE
LOWopenedx/core/lib/edx_api_utils.py26CODE
LOWopenedx/features/calendar_sync/tests/test_ics.py42CODE
LOWcommon/djangoapps/util/views.py44CODE
LOWcommon/djangoapps/util/views.py64CODE
LOWcommon/djangoapps/util/tests/test_filters.py97CODE
LOWcommon/djangoapps/student/tests/test_roles.py756CODE
LOWcommon/djangoapps/student/tests/tests.py1046CODE
LOWcommon/djangoapps/entitlements/rest_api/v1/filters.py23CODE
LOWcms/djangoapps/contentstore/exams.py154CODE
LOW…ngoapps/contentstore/core/course_optimizer_provider.py72CODE
LOW…ngoapps/contentstore/core/course_optimizer_provider.py652CODE
LOW…/contentstore/xblock_storage_handlers/view_handlers.py515CODE
19 more matches not shown…
Structural Annotation Overuse19 hits · 36 pts
SeverityFileLineSnippetContext
LOW⚡webpack.prod.config.js51// Step 1: Alter the bundle output names to omit the chunkhash.COMMENT
LOW⚡webpack.prod.config.js60// Step 2: Remove the plugin entries that generate the webpack-stats.json filesCOMMENT
LOWlms/djangoapps/commerce/utils.py357 # NOTE: The following assumes that the user has already been unenrolled.COMMENT
LOWopenedx/core/djangoapps/olx_rest_api/views.py40 # Step 1: Serialize the XBlocks to OLX files + static asset filesCOMMENT
LOWopenedx/core/djangoapps/user_authn/urls_common.py62 # WARNING: This is similar to auth_backends ^logout/$ (which has aCOMMENT
LOWcommon/djangoapps/track/middleware.py51 # WARNING: This list needs to be changed whenever we changeCOMMENT
LOWcommon/djangoapps/track/backends/mongodb.py80 # WARNING: The collection will be locked during the indexCOMMENT
LOWcommon/djangoapps/third_party_auth/urls.py29 # NOTE: The following routes under auth/saml/v0/ are registered by theCOMMENT
LOW⚡cms/djangoapps/contentstore/views/course.py1077 # Step 2: Single-pass decision → collect valid keysCOMMENT
LOW⚡cms/djangoapps/contentstore/views/course.py1083 # Step 3: Batch fetch valid courses with a single query, ordered by creation dateCOMMENT
LOW⚡cms/djangoapps/contentstore/views/course.py1090 # Step 4: Apply filters (e.g. search, active/archived status, ordering)COMMENT
LOWcms/djangoapps/contentstore/views/course.py1054 # Step 1: Determine candidate keysCOMMENT
LOW⚡…ore/rest_api/v0/tests/test_course_rerun_link_update.py140 # Step 1: Start taskCOMMENT
LOW⚡…ore/rest_api/v0/tests/test_course_rerun_link_update.py147 # Step 2: Check failed statusCOMMENT
LOW⚡scripts/structures_pruning/utils/splitmongo.py567 # Step 1: Relink - Change the previous pointer for the oldest structureCOMMENT
LOW⚡scripts/structures_pruning/utils/splitmongo.py574 # Step 2: Delete unused StructuresCOMMENT
LOW⚡xmodule/capa_block.py1992 # NOTE: The above process requires deep inspection of capa structures that may break for someCOMMENT
LOWxmodule/modulestore/xml_importer.py1020 # IMPORTANT: Be sure to update the block location in the NEW namespaceCOMMENT
LOWxmodule/modulestore/xml_importer.py1038 # IMPORTANT: Be sure to update the parent in the NEW namespaceCOMMENT
Verbosity Indicators17 hits · 30 pts
SeverityFileLineSnippetContext
LOW⚡webpack.prod.config.js51// Step 1: Alter the bundle output names to omit the chunkhash.COMMENT
LOW⚡webpack.prod.config.js60// Step 2: Remove the plugin entries that generate the webpack-stats.json filesCOMMENT
LOWlms/djangoapps/courseware/block_render.py515 The purpose of this function is to factor out everywhere a user is implicitly bound when creating a module,CODE
LOW…s/mailing/management/commands/mailchimp_sync_course.py244 The purpose of this function is unclear.STRING
LOWopenedx/core/djangoapps/credit/utils.py16 # Note: we need to check if found components have been orphanedCOMMENT
LOWopenedx/core/djangoapps/olx_rest_api/views.py40 # Step 1: Serialize the XBlocks to OLX files + static asset filesCOMMENT
LOWopenedx/core/djangoapps/content_libraries/tasks.py234 Whenever a container is edited, we need to check if child entities wereSTRING
LOWcms/djangoapps/contentstore/outlines.py255 # We need to check if there are duplicate sequences. If there areCOMMENT
LOW⚡cms/djangoapps/contentstore/views/course.py1077 # Step 2: Single-pass decision → collect valid keysCOMMENT
LOW⚡cms/djangoapps/contentstore/views/course.py1083 # Step 3: Batch fetch valid courses with a single query, ordered by creation dateCOMMENT
LOW⚡cms/djangoapps/contentstore/views/course.py1090 # Step 4: Apply filters (e.g. search, active/archived status, ordering)COMMENT
LOWcms/djangoapps/contentstore/views/course.py1054 # Step 1: Determine candidate keysCOMMENT
LOW⚡…ore/rest_api/v0/tests/test_course_rerun_link_update.py140 # Step 1: Start taskCOMMENT
LOW⚡…ore/rest_api/v0/tests/test_course_rerun_link_update.py147 # Step 2: Check failed statusCOMMENT
LOWcms/djangoapps/models/settings/course_metadata.py278 # Because we cannot pass course context to the exception, we need to check if the LTI providerCOMMENT
LOW⚡scripts/structures_pruning/utils/splitmongo.py567 # Step 1: Relink - Change the previous pointer for the oldest structureCOMMENT
LOW⚡scripts/structures_pruning/utils/splitmongo.py574 # Step 2: Delete unused StructuresCOMMENT
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…angoapps/contentstore/tests/test_import_draft_order.py32 # alphabetical ordering, for example). Therefore, I have added a lot of variation in filename and desiredCOMMENT
HIGHxmodule/course_block.py151 # cdodge: I've added this caching of TOC because in Mongo-backed instances (but not Filesystem stores)COMMENT
Slop Phrases7 hits · 13 pts
SeverityFileLineSnippetContext
LOWlms/djangoapps/bulk_email/tests/test_err_handling.py111 # Don't forget to account for the "myself" instructor userCOMMENT
MEDIUM…-complete/problem/eb248c5260254ce094c157ffb8352d16.xml1<problem display_name="Numerical Input" markdown="A numerical input problem accepts a line of text input from the studenCODE
LOWcms/djangoapps/contentstore/tests/test_contentstore.py151 # Add a new asset in the course, and make sure to name it such that it overwrite the one existingCOMMENT
MEDIUMcms/djangoapps/contentstore/views/preview.py368 # Generally speaking, "if you can add, you can delete". One exception is itembank (Problem Bank)COMMENT
LOWxmodule/modulestore/django.py189 # If you add a new signal, please don't forget to add it to the _mappingCOMMENT
LOWxmodule/modulestore/django.py189 # If you add a new signal, please don't forget to add it to the _mappingCOMMENT
MEDIUMxmodule/templates/html/zooming_image.yaml15 <p>Feel free to modify the example below for your own use, but take care not to remove the included Javascript.</pCODE
Cross-Language Confusion (JS/TS)2 hits · 12 pts
SeverityFileLineSnippetContext
HIGHscripts/delete-mongo-test-dbs.js21 print('Dropping test db ' + dbNameList[i]);CODE
HIGH…odule/assets/video/public/js/08_video_speed_control.js171 * return True. Otherwise, False will be returned.COMMENT
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWopenedx/core/djangoapps/xblock/runtime/shims.py124 # TODO: implement?COMMENT
LOWopenedx/core/djangoapps/xblock/runtime/shims.py170 # TODO: implement this to serve any static assets that self._active_block has.COMMENT
LOWopenedx/core/djangoapps/schedules/utils.py14# TODO: consider using a LoggerAdapter instead of this mixin:COMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMcms/djangoapps/contentstore/exams.py76 # microservice.COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcommon/static/sass/bourbon/addons/_clearfix.scss3// Example usage:COMMENT