Repository Analysis

openedx/openedx-platform

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

17.9 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of openedx/openedx-platform, a Python project with 8,141 GitHub stars. SynthScan v2.0 examined 1,044,917 lines of code across 6291 source files, recording 15805 pattern matches distributed across 24 syntactic categories. The overall adjusted score of 17.9 places this repository in the Moderate AI signal band.

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

17.9
Adjusted Score
17.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
8.1K
Stars
Python
Language
1.0M
Lines of Code
6.3K
Files
15.8K
Pattern Hits
2026-07-14
Scan Date
0.08
HC Hit Rate

What These Metrics Mean

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

Score History

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

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

Severity Breakdown

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

CRITICAL 122HIGH 408MEDIUM 531LOW 14744

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers11901 hits · 11224 pts
SeverityFileLineSnippetContext
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
LOWlms/djangoapps/commerce/tests/test_utils.py103 def test_get_absolute_ecommerce_url(self):CODE
LOWlms/djangoapps/commerce/tests/test_utils.py109 def test_get_receipt_page_url(self):CODE
LOWlms/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
LOWlms/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.py274 def test_create_zendesk_ticket_no_settings(self):CODE
LOWlms/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…/create_orders_for_old_enterprise_course_enrollment.py38 def _get_enrollments_queryset(self, start_index, end_index):CODE
LOW…/create_orders_for_old_enterprise_course_enrollment.py56 def _create_manual_enrollment_orders(self, enrollments):CODE
LOW…/create_orders_for_old_enterprise_course_enrollment.py96 def _is_paid_mode_course_enrollment(self, username, course_id):CODE
LOW…_create_orders_for_old_enterprise_course_enrollmnet.py36 def _create_enterprise_course_enrollments(cls, count):CODE
LOW…_create_orders_for_old_enterprise_course_enrollmnet.py80 def test_command_start_and_end_index(self, mock_create_manual_enrollment_orders):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
LOWlms/djangoapps/commerce/api/v0/tests/test_views.py210 def test_course_with_professional_mode_only(self):CODE
LOWlms/djangoapps/commerce/api/v0/tests/test_views.py215 def test_professional_mode_only_and_ecommerce_service_not_configured(self):CODE
11841 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
MEDIUMlms/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
MEDIUMlms/djangoapps/bulk_email/tests/test_signals.py105 # Create a course key for a course that doesn't exist in CourseOverviewCOMMENT
MEDIUMlms/djangoapps/bulk_email/tests/test_signals.py108 # Create an enrollment with a course_id that doesn't have a CourseOverviewCOMMENT
MEDIUMlms/djangoapps/experiments/tests/test_utils.py33 # Create a course runCOMMENT
MEDIUMlms/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
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1319 # Create a org and mode template language=nullSTRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1326 # Create a org and mode template language=wrong_languageSTRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1333 # Create an org and mode template language=''STRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1340 # Create a org and mode template language=langSTRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1377 # Create a org template language=nullSTRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1384 # Create a org template language=wrong_languageSTRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1391 # Create an org template language=''STRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1398 # Create a org template language=langSTRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1436 # Create a mode template language=nullSTRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1443 # Create a mode template language=wrong_languageSTRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1450 # Create a mode template language=''STRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1457 # Create a mode template language=langSTRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1498 # Create a mode template language=nullSTRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1505 # Create a mode template language=wrong_languageSTRING
MEDIUMlms/djangoapps/certificates/tests/test_webview_views.py1512 # Create a mode template language=''STRING
MEDIUMlms/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.py67 # Create a released discussion xblockCOMMENT
MEDIUM…angoapps/courseware/tests/test_self_paced_overrides.py75 # Create a scheduled discussion xblockCOMMENT
MEDIUM…jangoapps/courseware/tests/test_credit_requirements.py68 # Create a user and log inCOMMENT
MEDIUMlms/djangoapps/courseware/tests/test_views.py1135 # 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
MEDIUMlms/djangoapps/ccx/tests/test_views.py1197 # Create a Split Mongo course and enroll a student user in it.COMMENT
MEDIUMlms/djangoapps/ccx/tests/test_views.py1203 # Create a CCX coach.COMMENT
MEDIUMlms/djangoapps/ccx/tests/test_views.py1208 # Create a CCX course and enroll the user in it.COMMENT
MEDIUMlms/djangoapps/ccx/tests/test_views.py807 # Create a course outlineCOMMENT
MEDIUMlms/djangoapps/ccx/tests/test_views.py952 # 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
MEDIUMlms/djangoapps/support/tests/test_views.py2057 # Create a submitted attempt in the current courseCOMMENT
MEDIUMlms/djangoapps/support/tests/test_views.py2061 # 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
MEDIUMlms/djangoapps/course_api/tests/test_views.py549 # Create a second course, along with an instructor user for it.COMMENT
MEDIUMlms/djangoapps/course_api/tests/test_views.py554 # Create a third course, along with an user that has both staff and instructor for it.COMMENT
MEDIUMlms/djangoapps/course_api/tests/test_views.py174 # Create a second course to be filtered out of queries.COMMENT
MEDIUMlms/djangoapps/course_api/tests/test_views.py208 # Create a second course to be filtered out of queries.COMMENT
406 more matches not shown…
Hallucination Indicators122 hits · 1295 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.py11from django.core.exceptions import ValidationErrorCODE
CRITICALlms/djangoapps/ccx/utils.py15from 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/views/api_v2.py20from 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
CRITICALopenedx/core/djangoapps/course_groups/urls.py17 openedx.core.djangoapps.course_groups.views.CohortSettings.as_view(),CODE
CRITICALopenedx/core/djangoapps/course_groups/urls.py24 openedx.core.djangoapps.course_groups.views.CohortHandler.as_view(),CODE
CRITICALopenedx/core/djangoapps/course_groups/urls.py31 openedx.core.djangoapps.course_groups.views.CohortUsers.as_view(),CODE
CRITICALopenedx/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/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.py88 meilisearch_client.return_value.index.return_value.update_documents.assert_called_with([doc_sequential])CODE
CRITICAL…/core/djangoapps/content/search/tests/test_handlers.py115 meilisearch_client.return_value.index.return_value.update_documents.assert_called_with([doc_vertical])CODE
CRITICAL…/core/djangoapps/content/search/tests/test_handlers.py129 meilisearch_client.return_value.index.return_value.update_documents.assert_called_with([CODE
CRITICAL…/core/djangoapps/content/search/tests/test_handlers.py138 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
CRITICAL…enedx/core/djangoapps/content/search/tests/test_api.py558 mock_meilisearch.return_value.index.return_value.add_documents.assert_has_calls(CODE
CRITICAL…enedx/core/djangoapps/content/search/tests/test_api.py568 mock_meilisearch.return_value.index.return_value.update_sortable_attributes.assert_called_with([CODE
CRITICAL…enedx/core/djangoapps/content/search/tests/test_api.py574 mock_meilisearch.return_value.index.return_value.update_ranking_rules.assert_called_with([CODE
62 more matches not shown…
Cross-File Repetition238 hits · 1190 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
178 more matches not shown…
Over-Commented Block814 hits · 637 pts
SeverityFileLineSnippetContext
LOWwebpack.prod.config.js41// where to find named bundle output files, but doesn't know aboutCOMMENT
LOWpyproject.toml261 # -> openedx.features.content_type_gating.helpersCOMMENT
LOWpyproject.toml281 # cms.djangoapps.contentstore.tasks -> openedx.core.djangoapps.content_libraries.[various] -> openedx.core.djangoappCOMMENT
LOWpyproject.toml301 # -> openedx.features.discounts.utilsCOMMENT
LOWpyproject.toml381ignore_imports = [COMMENT
LOWpyproject.toml401 # Outstanding arch issue: course_overviews is tangled up with LMSCOMMENT
LOWwebpack.common.config.js641 'common/static/js/vendor/tinymce/js/tinymce',COMMENT
LOWtox.ini1[tox]COMMENT
LOWlms/__init__.py1"""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/grades/rest_api/v1/gradebook_views.py461 attempted = FalseCOMMENT
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 # the user hasn't done something (for example, submitting photos for verification)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
LOWlms/static/js/Markdown.Converter.js961 function _DoCodeSpans(text) {COMMENT
LOWlms/static/js/Markdown.Converter.js1161 text = text.replace(/<(?![a-z\/?\$!])/gi, '&lt;');COMMENT
LOWlms/static/js/pdf-analytics.js1// Analytics shim for the embedded pdf.js viewer.COMMENT
LOWlms/static/js/navigation.js1// This file is intentionally blank as it was removed because it was noCOMMENT
754 more matches not shown…
Unused Imports541 hits · 506 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.py29CODE
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
481 more matches not shown…
Cross-Language Confusion118 hits · 427 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.py410 "category": null,STRING
HIGHlms/djangoapps/grades/rest_api/v1/gradebook_views.py419 "label": null,STRING
HIGHlms/djangoapps/grades/rest_api/v1/gradebook_views.py1021 "earned_all_override": null,STRING
HIGHlms/djangoapps/grades/rest_api/v1/gradebook_views.py1022 "possible_all_override": null,STRING
HIGHlms/djangoapps/grades/rest_api/v1/gradebook_views.py1029 "comments": null,STRING
HIGHlms/djangoapps/grades/rest_api/v1/gradebook_views.py1036 "comments": null,STRING
HIGHlms/djangoapps/grades/rest_api/v1/gradebook_views.py1043 "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.py161 "next": null,STRING
HIGHlms/djangoapps/program_enrollments/rest_api/v1/views.py445 "next": null,STRING
HIGHlms/djangoapps/program_enrollments/rest_api/v1/views.py591 "next": null,STRING
HIGHlms/djangoapps/program_enrollments/rest_api/v1/views.py745 # Get all the courses of which the user is course staff for. If None, return falseCOMMENT
HIGHlms/djangoapps/program_enrollments/rest_api/v1/views.py843 "next": null,STRING
HIGHlms/djangoapps/program_enrollments/rest_api/v1/views.py844 "previous": null,STRING
HIGHlms/djangoapps/program_enrollments/rest_api/v1/views.py876 "end_date": null,STRING
HIGHlms/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.py1689 # 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.py172 along with the specified user's role ("instructor", "staff", or null) in each course.STRING
HIGHlms/djangoapps/course_api/views.py442 "previous": null,STRING
HIGHlms/djangoapps/course_api/views.py444 "next": null,STRING
HIGHlms/djangoapps/verify_student/tests/test_models.py401 Test if the `expiration_date` field is null, `expiration_datetime` returns aSTRING
HIGHlms/djangoapps/teams/api.py255 Else, return True. If the user is a course admin, also return trueSTRING
HIGHlms/djangoapps/teams/tests/test_views.py229 self.assertContains(response, '"teams": {"next": null, "previous": null, "count": 0')CODE
HIGHlms/djangoapps/teams/tests/test_views.py235 self.assertContains(response, '"teams": {"next": null, "previous": null, "count": 1')CODE
HIGHlms/djangoapps/teams/tests/test_views.py239 self.assertContains(response, '"teams": {"next": null, "previous": null, "count": 0')CODE
HIGHlms/djangoapps/discussion/rest_api/api.py1098 "reason_code": null,STRING
HIGHlms/djangoapps/discussion/rest_api/api.py1104 "group_id": null,STRING
HIGHlms/djangoapps/discussion/rest_api/api.py1105 "group_name": null,STRING
HIGHlms/djangoapps/discussion/rest_api/api.py1108 "abuse_flagged_count": null,STRING
HIGHlms/djangoapps/discussion/rest_api/api.py1116 "endorsed_comment_list_url": null,STRING
HIGHlms/djangoapps/discussion/rest_api/api.py1117 "non_endorsed_comment_list_url": null,STRING
HIGHlms/djangoapps/discussion/rest_api/api.py1120 "close_reason": null,STRING
HIGHlms/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.py224 "enrollment_end": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py329 "task_output": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py553 "previous": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py1256 "previous": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py1266 "invalidated_by": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py1563 "previous": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py2448 "previous": null,STRING
HIGHlms/djangoapps/instructor/views/api_v2.py3290 "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
HIGHopenedx/core/djangoapps/enrollments/api.py60 "expiration_datetime": null,STRING
HIGHopenedx/core/djangoapps/enrollments/api.py61 "description": null,STRING
HIGHopenedx/core/djangoapps/enrollments/api.py62 "sku": null,STRING
HIGHopenedx/core/djangoapps/enrollments/api.py112 "expiration_datetime": null,STRING
HIGHopenedx/core/djangoapps/enrollments/api.py113 "description": null,STRING
HIGHopenedx/core/djangoapps/enrollments/api.py114 "sku": null,STRING
58 more matches not shown…
Deep Nesting482 hits · 426 pts
SeverityFileLineSnippetContext
LOW…/create_orders_for_old_enterprise_course_enrollment.py56CODE
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.py45CODE
LOW…nt/commands/send_segment_events_for_failed_learners.py92CODE
LOWlms/djangoapps/grades/rest_api/v1/gradebook_views.py538CODE
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.py1390CODE
LOWlms/djangoapps/branding/views.py165CODE
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.py113CODE
LOW…management/commands/send_program_course_nudge_email.py231CODE
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.py439CODE
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.py90CODE
LOWlms/djangoapps/certificates/tests/test_api.py547CODE
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
422 more matches not shown…
Excessive Try-Catch Wrapping402 hits · 389 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
LOW…/create_orders_for_old_enterprise_course_enrollment.py163 except Exception as ex: # pylint: disable=broad-exceptCODE
LOW…/create_orders_for_old_enterprise_course_enrollment.py287 except Exception as ex:CODE
LOWlms/djangoapps/commerce/api/v0/views.py82 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.py111 except Exception as exc:CODE
LOWlms/djangoapps/grades/tasks.py253 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
LOWlms/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.py305 except Exception:CODE
LOWlms/djangoapps/bulk_email/tasks.py688 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/bulk_email/tasks.py817 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
LOWlms/djangoapps/courseware/views/views.py544 except Exception as exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/courseware/views/views.py1327 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/support/tasks.py72 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.py490 except Exception as exc: # pylint: disable=broad-except # noqa: F841CODE
LOWlms/djangoapps/support/rest_api/v1/views.py524 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/bulk_user_retirement/views.py66 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/verify_student/tasks.py133 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/verify_student/models.py780 except Exception as e: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/verify_student/models.py804 except Exception as e: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/verify_student/models.py880 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/verify_student/emails.py35 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/verify_student/emails.py58 except Exception: # pylint: disable=broad-exceptCODE
LOWlms/djangoapps/verify_student/utils.py27 except Exception as error: # pylint: disable=broad-exceptCODE
342 more matches not shown…
Docstring Block Structure48 hits · 240 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.py1081 Handles POST request to list instructors and staff. Args: request (HttpRequest): The requeSTRING
HIGHlms/djangoapps/instructor/views/api.py1168 Handles POST request to list course enrollments. Args: request (HttpRequest): The request STRING
HIGHlms/djangoapps/instructor/views/api.py3071 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.py251 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.py683 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.py114 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/student/auth.py227 Determine whether a user is allowed to create course content for a given organization. This function abstractsSTRING
HIGHcommon/djangoapps/third_party_auth/pipeline.py279Gets a saved user authenticated by a particular backend. Between pipeline steps User objects are not saved. We needSTRING
HIGHcommon/djangoapps/third_party_auth/pipeline.py344Gets URL for the endpoint that returns control to the auth pipeline. Args: backend_name: string. Name of thSTRING
HIGHcommon/djangoapps/third_party_auth/pipeline.py363Gets URL for the endpoint that starts the disconnect pipeline. Args: provider_id: string identifier of the STRING
HIGHcommon/djangoapps/third_party_auth/pipeline.py388Gets the login URL for the endpoint that kicks off auth with a provider. Args: provider_id: string identifiSTRING
HIGHcms/djangoapps/contentstore/views/course.py920 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.py166 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 Comments139 hits · 224 pts
SeverityFileLineSnippetContext
LOWlms/djangoapps/commerce/api/v0/tests/test_views.py224 # Set SKU to empty string for all modes.COMMENT
LOWlms/djangoapps/edxnotes/tests.py1231 # Set state to the _COMPLETE version of an arbitrary "SOMETHING" state.COMMENT
LOWlms/djangoapps/instructor_analytics/tests/test_basic.py119 # Check if list_problem_responses called UsageKey.from_string to look up problem key:COMMENT
LOWlms/djangoapps/instructor_analytics/tests/test_basic.py121 # Check if list_problem_responses called StudentModule.objects.filter to obtain relevant records:COMMENT
LOWlms/djangoapps/instructor_analytics/tests/test_basic.py126 # Check if list_problem_responses returned expected results:COMMENT
LOWlms/djangoapps/program_enrollments/rest_api/v1/views.py713 # 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
LOWlms/djangoapps/experiments/flags.py213 # Check if we have a cache for this request alreadyCOMMENT
LOWlms/djangoapps/experiments/flags.py219 # Check if the main flag is even enabled for this user and course.COMMENT
LOWlms/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.py311 # 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
LOWlms/djangoapps/instructor/views/api_v2.py2044 # Check if user is enrolledCOMMENT
LOWlms/djangoapps/instructor/views/api_v2.py2052 # Check if user already has an exceptionCOMMENT
LOWlms/djangoapps/instructor/views/api_v2.py2060 # Check if user has an active invalidationCOMMENT
LOWlms/djangoapps/instructor/views/api_v2.py1126 # Check if the problem actually exists in the modulestoreCOMMENT
LOWlms/djangoapps/instructor/views/api_v2.py1787 # Check if certificate generation is enabled (not available for CCX courses)COMMENT
LOWlms/djangoapps/instructor/views/api_v2.py2114 # Check if certificate existsCOMMENT
LOWlms/djangoapps/instructor/views/api_v2.py2172 # 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.py944 # Check if student is already enrolledCOMMENT
LOWlms/djangoapps/instructor/views/api.py3920 # Check if the learner is actively enrolled in the course-runCOMMENT
LOWlms/djangoapps/instructor/views/api.py3927 # Check if the learner is blocked from receiving certificates in this course run.COMMENT
LOWlms/djangoapps/instructor/views/api.py4295 # 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.py770 # Check if the requested activation status is None or a BooleanCOMMENT
LOWopenedx/core/djangoapps/enrollments/views.py800 # Check if the force enrollment status is None or a BooleanCOMMENT
LOWopenedx/core/djangoapps/content_tagging/auth.py68 # Check if toggle is activeCOMMENT
LOW…dx/core/djangoapps/content_tagging/tests/test_tasks.py119 # Check if the tags are created in the CourseCOMMENT
LOW…dx/core/djangoapps/content_tagging/tests/test_tasks.py150 # Check if the tags are created in the Course is the system defaultCOMMENT
LOW…dx/core/djangoapps/content_tagging/tests/test_tasks.py164 # Check if the tags are created in the Course is the system defaultCOMMENT
LOW…dx/core/djangoapps/content_tagging/tests/test_tasks.py224 # Check if the tags are created in the XBlockCOMMENT
LOW…dx/core/djangoapps/content_tagging/tests/test_tasks.py230 # Check if the tags are deletedCOMMENT
LOW…dx/core/djangoapps/content_tagging/tests/test_tasks.py298 # Check if the tags are created in the Library Block with the user's preferred languageCOMMENT
LOW…dx/core/djangoapps/content_tagging/tests/test_tasks.py310 # Check if the tags are still present in the Library Block with the user's preferred languageCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2446 # Check if the taxonomy was createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2452 # Check if the tags were createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2460 # Check if the taxonomy was no association with orgsCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2493 # Check if the taxonomy was createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2499 # Check if the tags were createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2507 # Check if the taxonomy was associated with the orgACOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2529 # Check if the taxonomy was not createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2555 # Check if the taxonomy was not createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2586 # Check if the taxonomy was not createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2609 # Check if the taxonomy was not createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2636 # Check if the taxonomy was not createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2665 # Check if the taxonomy was not createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2718 # Check if the tags were createdCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2740 # Check if the taxonomy was not changedCOMMENT
LOW…goapps/content_tagging/rest_api/v1/tests/test_views.py2763 # Check if the taxonomy was not changedCOMMENT
79 more matches not shown…
Fake / Example Data199 hits · 197 pts
SeverityFileLineSnippetContext
LOWlms/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
LOWlms/djangoapps/bulk_email/tests/test_err_handling.py270 to_list = ['test@test.com']CODE
LOWlms/djangoapps/bulk_email/tests/test_err_handling.py282 to_list = ['test@test.com']CODE
LOWlms/djangoapps/bulk_email/tests/test_err_handling.py301 to_list = ['test@test.com']CODE
LOWlms/djangoapps/bulk_email/tests/test_err_handling.py317 to_list = ['test@test.com']CODE
LOWlms/djangoapps/bulk_email/tests/test_err_handling.py331 to_list = ['test@test.com']CODE
LOWlms/djangoapps/bulk_email/tests/test_err_handling.py350 to_list = ['test@test.com']CODE
LOWlms/djangoapps/bulk_email/tests/test_err_handling.py362 to_list = ['test@test.com']CODE
LOWlms/djangoapps/courseware/tests/test_tabs.py535 {'type': 'discussion', 'name': 'fake_name'},CODE
LOWlms/djangoapps/courseware/tests/test_tabs.py536 {'type': ExternalLinkCourseTab.type, 'name': 'fake_name', 'link': 'fake_link'},CODE
LOWlms/djangoapps/courseware/tests/test_tabs.py537 {'type': ExternalLinkCourseTab.type, 'name': 'fake_name', 'link': 'fake_link'},CODE
LOWlms/djangoapps/courseware/tests/test_tabs.py541 {'type': ProgressTab.type, 'name': 'fake_name'},CODE
LOWlms/djangoapps/courseware/tests/test_tabs.py542 {'type': xmodule_tabs.StaticTab.type, 'name': 'fake_name', 'url_slug': 'schlug'},CODE
LOWlms/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
LOWlms/djangoapps/courseware/tests/test_block_render.py299 fake_key = 'fake key'CODE
LOWlms/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
LOWlms/djangoapps/lti_provider/tests/test_users.py211 "John Doe",CODE
LOWlms/djangoapps/lti_provider/tests/test_users.py216 "lis_person_name_full": "John Doe",CODE
LOWlms/djangoapps/lti_provider/tests/test_users.py220 "John Doe",CODE
LOWlms/djangoapps/lti_provider/tests/test_users.py223 {"lis_person_contact_email_primary": "some_email@example.com", "lis_person_name_full": "John Doe"},CODE
LOWlms/djangoapps/lti_provider/tests/test_users.py225 "John Doe",CODE
LOWlms/djangoapps/lti_provider/tests/test_users.py316 "full_name": "John Doe",CODE
LOWlms/djangoapps/lti_provider/tests/test_users.py321 assert lti_user.edx_user.profile.name == "John Doe"CODE
LOWlms/djangoapps/lti_provider/tests/test_users.py327 "full_name": "John Doe",CODE
LOWlms/djangoapps/lti_provider/tests/test_users.py331 assert lti_user.edx_user.profile.name == "John Doe"CODE
LOWlms/djangoapps/lti_provider/tests/test_users.py337 "full_name": "John Doe",CODE
LOWlms/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.py143 `student_email` is student's emails e.g. "foo@bar.com"STRING
LOWlms/djangoapps/instructor/enrollment.py210 `student_email` is student's emails e.g. "foo@bar.com"STRING
LOWlms/djangoapps/instructor/tests/test_enrollment.py1011 email_params["email_address"] = "user@example.com"CODE
LOWlms/djangoapps/instructor/tests/test_enrollment.py1027 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
LOWlms/djangoapps/instructor/tests/utils.py104 def __init__(self, fake_email, num_sent, num_failed):CODE
LOWlms/djangoapps/instructor/tests/utils.py106 self.created = fake_email.created.strftime("%Y-%m-%dT%H:%M:%SZ")CODE
LOWlms/djangoapps/instructor/tests/utils.py113 fake_email_dict = fake_email.to_dict()CODE
LOWlms/djangoapps/instructor/tests/test_api.py427 {'identifiers': 'foo@example.org', 'action': 'enroll'}),CODE
LOWlms/djangoapps/instructor/tests/test_api.py465 ('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.py557 "full_name": "John Doe",STRING
139 more matches not shown…
AI Slop Vocabulary83 hits · 152 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.py473 # to the footer logo rather than use the comprehensive theming system.COMMENT
LOWlms/djangoapps/instructor_task/models.py146 # will fit in the column. In the meantime, just return an exception.COMMENT
LOWlms/djangoapps/bulk_email/tasks.py159 # 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.py302 # Essentially, if today is Sunday, days_left_in_week should be 1 since they have Sunday to hit their goal.COMMENT
MEDIUMlms/djangoapps/teams/tests/test_views.py2797 """Test that team creation is robust to Elasticsearch errors."""STRING
MEDIUMlms/djangoapps/teams/tests/test_views.py2806 """Test that team deletion is robust to Elasticsearch errors."""STRING
MEDIUMlms/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.py1202 # 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
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
LOWopenedx/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.py886 # If this is an absolute URL, just return it as is. It could be a domainCOMMENT
LOW…ontent/course_overviews/tests/test_course_overviews.py708 # 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.py507 # 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.py347 # 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
MEDIUMopenedx/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.py2074# The following Django settings flags have been introduced temporarily to facilitateCOMMENT
MEDIUMopenedx/envs/common.py2450# 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.py288# 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
MEDIUMcommon/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
MEDIUMcms/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
LOWcms/djangoapps/contentstore/views/user.py101 # just return info about the userCOMMENT
23 more matches not shown…
Modern Structural Boilerplate102 hits · 104 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.py44logger = 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.py22logger = logging.getLogger(__name__)CODE
LOWlms/djangoapps/learner_home/views.py52logger = logging.getLogger(__name__)CODE
LOWlms/djangoapps/instructor/tasks.py25def update_exam_completion_task(user_identifier: str, content_id: str, completion: float) -> None:CODE
LOWopenedx/core/djangoapps/content_tagging/tasks.py28def _set_initial_language_tag(content_key: ContentKey, lang_code: str) -> 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.py94def update_content_library_index_docs(library_key_str: str, full_index: bool = False) -> None:CODE
LOWopenedx/core/djangoapps/content/search/tasks.py108def update_library_collection_index_doc(collection_key_str: str) -> None:CODE
LOWopenedx/core/djangoapps/content/search/tasks.py122def update_library_components_collections(collection_key_str: str) -> None:CODE
LOWopenedx/core/djangoapps/content/search/tasks.py136def update_library_containers_collections(collection_key_str: str) -> None:CODE
LOWopenedx/core/djangoapps/content/search/tasks.py150def update_library_container_index_doc(container_key_str: str) -> None:CODE
LOWopenedx/core/djangoapps/content/search/api.py316def _update_index_docs(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.py29logger = 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
LOWopenedx/core/djangoapps/notifications/tasks.py257def 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/authentication.py20logger = logging.getLogger(__name__)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
LOW…jangoapps/student/management/commands/bulk_unenroll.py13logger = logging.getLogger(__name__) # pylint: disable=invalid-nameCODE
42 more matches not shown…
Decorative Section Separators18 hits · 69 pts
SeverityFileLineSnippetContext
MEDIUM…edx/core/djangoapps/content_libraries/api/libraries.py243# ============COMMENT
MEDIUM…ore/djangoapps/content_libraries/rest_api/libraries.py680# ====================COMMENT
MEDIUM…ngoapps/contentstore/tests/test_course_create_rerun.py427 # ------------------------------------------------------------COMMENT
MEDIUM…ngoapps/contentstore/tests/test_course_create_rerun.py429 # ------------------------------------------------------------COMMENT
MEDIUM…ngoapps/contentstore/tests/test_course_create_rerun.py484 # ------------------------------------------------------------COMMENT
MEDIUM…ngoapps/contentstore/tests/test_course_create_rerun.py486 # ------------------------------------------------------------COMMENT
MEDIUM…ngoapps/contentstore/tests/test_course_create_rerun.py466 # ------------------------------------------------------------COMMENT
MEDIUM…ngoapps/contentstore/tests/test_course_create_rerun.py470 # ------------------------------------------------------------COMMENT
MEDIUMcms/djangoapps/contentstore/views/tests/test_block.py3651 # ------------------------------------------------------------------COMMENT
MEDIUMcms/djangoapps/contentstore/views/tests/test_block.py3653 # ------------------------------------------------------------------COMMENT
MEDIUMcms/djangoapps/contentstore/views/tests/test_block.py3673 # ------------------------------------------------------------------COMMENT
MEDIUMcms/djangoapps/contentstore/views/tests/test_block.py3675 # ------------------------------------------------------------------COMMENT
MEDIUMcms/djangoapps/contentstore/views/tests/test_block.py3686 # ------------------------------------------------------------------COMMENT
MEDIUMcms/djangoapps/contentstore/views/tests/test_block.py3688 # ------------------------------------------------------------------COMMENT
MEDIUMxmodule/modulestore/tests/test_xml_importer.py75#===========================================COMMENT
MEDIUMxmodule/modulestore/tests/test_split_modulestore.py2058# ===========================================COMMENT
MEDIUMxmodule/modulestore/split_mongo/split.py107# ==============================================================================COMMENT
MEDIUMxmodule/modulestore/split_mongo/split.py123# ==============================================================================COMMENT
AI Structural Patterns80 hits · 66 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.py1212CODE
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.py2196CODE
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.py345CODE
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.py1397CODE
LOWlms/djangoapps/discussion/rest_api/tests/test_api_v2.py2851CODE
LOWlms/djangoapps/instructor/tests/test_certificates.py1137CODE
LOWlms/djangoapps/instructor/tests/test_api.py5457CODE
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.py55CODE
LOWopenedx/core/djangoapps/user_api/helpers.py136CODE
LOWopenedx/core/djangoapps/content/search/api.py1172CODE
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.py618CODE
LOWcommon/djangoapps/student/tests/tests.py988CODE
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.py438CODE
20 more matches not shown…
Structural Annotation Overuse19 hits · 36 pts
SeverityFileLineSnippetContext
LOWwebpack.prod.config.js51// Step 1: Alter the bundle output names to omit the chunkhash.COMMENT
LOWwebpack.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
LOWcms/djangoapps/contentstore/views/course.py1059 # Step 2: Single-pass decision → collect valid keysCOMMENT
LOWcms/djangoapps/contentstore/views/course.py1065 # Step 3: Batch fetch valid courses with a single query, ordered by creation dateCOMMENT
LOWcms/djangoapps/contentstore/views/course.py1070 # Step 4: Apply filters (e.g. search, active/archived status, ordering)COMMENT
LOWcms/djangoapps/contentstore/views/course.py1036 # 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
LOWscripts/structures_pruning/utils/splitmongo.py567 # Step 1: Relink - Change the previous pointer for the oldest structureCOMMENT
LOWscripts/structures_pruning/utils/splitmongo.py574 # Step 2: Delete unused StructuresCOMMENT
LOWxmodule/capa_block.py1999 # 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
LOWwebpack.prod.config.js51// Step 1: Alter the bundle output names to omit the chunkhash.COMMENT
LOWwebpack.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.py238 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
LOWcms/djangoapps/contentstore/views/course.py1059 # Step 2: Single-pass decision → collect valid keysCOMMENT
LOWcms/djangoapps/contentstore/views/course.py1065 # Step 3: Batch fetch valid courses with a single query, ordered by creation dateCOMMENT
LOWcms/djangoapps/contentstore/views/course.py1070 # Step 4: Apply filters (e.g. search, active/archived status, ordering)COMMENT
LOWcms/djangoapps/contentstore/views/course.py1036 # 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
LOWscripts/structures_pruning/utils/splitmongo.py567 # Step 1: Relink - Change the previous pointer for the oldest structureCOMMENT
LOWscripts/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.py156 # 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.py358 # Generally speaking, "if you can add, you can delete". One exception is itembank (Problem Bank)COMMENT
LOWxmodule/modulestore/django.py191 # If you add a new signal, please don't forget to add it to the _mappingCOMMENT
LOWxmodule/modulestore/django.py191 # 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