AI Slop Code RIsk Monitor

zulip/zulip

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

9.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for zulip/zulip, a Python project with 26,027 GitHub stars. SynthScan examined 973,354 lines of code across 4148 source files, recording 9029 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 9.2 (Moderate pattern signal); it is not an authorship estimate.

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

9.2
Adjusted Signal
9.2
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
26.0K
Stars
Python
Language
973.4K
Lines of Code
4.1K
Files
9.0K
Pattern Hits
2026-10-12
Scan Date
0.03
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 29.1/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 9.4/100 · LOW

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

Agent Over-Engineering Ratio 26.0/100 · MEDIUM

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

PR Review Velocity Impact 40.8/100 · MEDIUM

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 60HIGH 70MEDIUM 144LOW 8755

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers6458 hits · 5441 pts
SeverityFileLineSnippetContext
LOWmanage.py112def execute_from_command_line(argv: list[str] | None = None) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py39 def test_current_counts_for_billed_users(self) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py143 def test_upgrade_user_to_business_plan(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py292 def test_stripe_billing_portal_urls_for_remote_realm(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py318 def test_upgrade_user_to_basic_plan_free_trial_fails_special_case(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py397 def test_upgrade_user_to_basic_plan_free_trial(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py529 def test_redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end(CODE
LOWcorporate/tests/test_stripe_remote_realm.py617 def test_upgrade_remote_realm_user_to_monthly_basic_plan(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py733 def test_upgrade_user_to_fixed_price_monthly_basic_plan(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py832 def test_delete_configured_fixed_price_plan_offer_no_active_plan(self) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py888 def test_delete_configured_fixed_price_plan_offer_on_complimentary_access_plan(self) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py973 def test_upgrade_user_to_fixed_price_plan_pay_by_invoice(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py1163 def test_schedule_upgrade_to_fixed_price_annual_business_plan(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py1282 def test_schedule_complimentary_access_plan_upgrade_to_fixed_price_plan(CODE
LOWcorporate/tests/test_stripe_remote_realm.py1372 def test_delete_scheduled_fixed_price_plan_on_complimentary_access_plan(CODE
LOWcorporate/tests/test_stripe_remote_realm.py1478 def test_delete_configured_fixed_price_plan_offer_with_sent_invoice(self) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py1538 def test_schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan(CODE
LOWcorporate/tests/test_stripe_remote_realm.py1671 def test_migrate_customer_server_to_realms_and_upgrade(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py1800 def test_invoice_initial_remote_realm_upgrade(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py1831 def test_invoice_plans_as_needed(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_stripe_remote_realm.py1931 def test_invoice_scheduled_upgrade_realm_complimentary_access_plan(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_billing_lib.py115 def test_compute_plan_parameters(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py210 def test_get_price_per_license(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py282 def test_get_plan_renewal_or_end_date(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py304 def test_update_or_create_stripe_customer_logic(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py341 def test_get_customer_by_realm(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py349 def test_get_current_plan_by_customer(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py376 def test_get_current_plan_by_realm(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py393 def test_is_realm_on_free_trial(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py411 def test_deactivate_reactivate_remote_server(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py469 def test_initialize_fixed_price_plan_realm(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py542 def test_initialize_fixed_price_plan_remote_realm(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py633 def test_initialize_fixed_price_plan_remote_server(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py718 def test_add_plan_renewal_if_needed(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py751 def test_update_license_ledger_if_needed(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py780 def test_update_license_ledger_for_automanaged_plan(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py835 def test_update_license_ledger_for_manual_plan(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py910 def test_workplace_users_group_changes(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py943 def assert_ledger_rows_not_added(*, action: Callable[[], None]) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1018 def test_workplace_users_group_changes_without_a_plan(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1079 def test_toggle_license_management(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1104 def test_invoicing_status_is_started(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1115 def test_invoice_plan_without_stripe_customer(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1134 def test_validate_licenses_for_manual_plan_management(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1233 def test_invoice_plan_bundle_additional_licenses(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1357 def test_upgrade_to_fixed_price_plus_plan(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1480 def test_invoice_plans_as_needed(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1499 def test_invoice_for_additional_license(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1542 def test_subscribe_realm_to_manual_license_management_plan(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1563 def test_subscribe_realm_to_monthly_plan_on_manual_license_management(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1607 def test_attach_discount_to_realm(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1722 def test_add_minimum_licenses(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1770 def test_set_required_plan_tier(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1873 def test_approve_realm_sponsorship(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1908 def test_update_realm_sponsorship_status(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1924 def test_update_realm_billing_modality(self) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1961 def test_switch_realm_from_standard_to_plus_plan(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_billing_lib.py1992 def test_downgrade_realm_and_void_open_invoices(self, *mocks: Mock) -> None:CODE
LOWcorporate/tests/test_remote_counts.py25 def test_compute_max_monthly_messages(self) -> None:CODE
LOWcorporate/tests/test_stripe.py65 def check_initial_ledger_entry(CODE
6398 more matches not shown…
Fake / Example Data1017 hits · 1020 pts
SeverityFileLineSnippetContext
LOWcorporate/tests/test_billing_lib.py421 remote_server=remote_server, email="admin@example.com"CODE
LOWcorporate/tests/test_billing_lib.py2040 remote_realm=remote_realm, email="admin@example.com", user_uuid=uuid.uuid4()CODE
LOWcorporate/tests/test_billing_lib.py2043 remote_server=remote_server, email="admin@example.com"CODE
LOW…vent_with_uncaught_exception--Customer.retrieve.2.json22 "line1": "123 Main St",CODE
LOW…vent_with_uncaught_exception--Customer.retrieve.2.json28 "name": "John Doe",CODE
LOW…e_by_card_with_outdated_seat_count--Charge.list.1.json15 "line1": "123 Main St",CODE
LOW…e_by_card_with_outdated_seat_count--Charge.list.1.json21 "name": "John Doe",CODE
LOW…rd_as_default_payment_method--Customer.retrieve.3.json22 "line1": "123 Main St",CODE
LOW…rd_as_default_payment_method--Customer.retrieve.3.json28 "name": "John Doe",CODE
LOW…tures/upgrade_license_counts--Customer.retrieve.1.json22 "line1": "123 Main St",CODE
LOW…tures/upgrade_license_counts--Customer.retrieve.1.json28 "name": "John Doe",CODE
LOW…voice_plans_as_needed_server--Customer.retrieve.4.json22 "line1": "123 Main St",CODE
LOW…voice_plans_as_needed_server--Customer.retrieve.4.json28 "name": "John Doe",CODE
LOW…res/check_upgrade_parameters--Customer.retrieve.7.json22 "line1": "123 Main St",CODE
LOW…res/check_upgrade_parameters--Customer.retrieve.7.json28 "name": "John Doe",CODE
LOW…d_price_annual_business_plan--Customer.retrieve.1.json22 "line1": "123 Main St",CODE
LOW…d_price_annual_business_plan--Customer.retrieve.1.json28 "name": "John Doe",CODE
LOW…ures/upgrade_license_counts--Customer.retrieve.16.json22 "line1": "123 Main St",CODE
LOW…ures/upgrade_license_counts--Customer.retrieve.16.json28 "name": "John Doe",CODE
LOW…automatic_license_management--Customer.retrieve.3.json22 "line1": "123 Main St",CODE
LOW…automatic_license_management--Customer.retrieve.3.json28 "name": "John Doe",CODE
LOW…ondition_during_card_upgrade--Customer.retrieve.5.json22 "line1": "123 Main St",CODE
LOW…ondition_during_card_upgrade--Customer.retrieve.5.json28 "name": "John Doe",CODE
LOW…es/replace_payment_method--PaymentMethod.create.2.json7 "line1": "123 Main St",CODE
LOW…es/replace_payment_method--PaymentMethod.create.2.json13 "name": "John Doe",CODE
LOW…ures/upgrade_license_counts--Customer.retrieve.41.json22 "line1": "123 Main St",CODE
LOW…ures/upgrade_license_counts--Customer.retrieve.41.json28 "name": "John Doe",CODE
LOW…es/check_upgrade_parameters--Customer.retrieve.25.json22 "line1": "123 Main St",CODE
LOW…es/check_upgrade_parameters--Customer.retrieve.25.json28 "name": "John Doe",CODE
LOW…n_bundle_additional_licenses--Customer.retrieve.4.json22 "line1": "123 Main St",CODE
LOW…n_bundle_additional_licenses--Customer.retrieve.4.json28 "name": "John Doe",CODE
LOW…rade_by_card_to_plus_plan--PaymentMethod.create.1.json7 "line1": "123 Main St",CODE
LOW…rade_by_card_to_plus_plan--PaymentMethod.create.1.json13 "name": "John Doe",CODE
LOW…ures/non_sponsorship_billing--Customer.retrieve.2.json22 "line1": "123 Main St",CODE
LOW…ures/non_sponsorship_billing--Customer.retrieve.2.json28 "name": "John Doe",CODE
LOW…_downgrade_at_free_trial_end--Customer.retrieve.6.json22 "line1": "123 Main St",CODE
LOW…_downgrade_at_free_trial_end--Customer.retrieve.6.json28 "name": "John Doe",CODE
LOW…minimum_licenses_for_plan--PaymentMethod.create.1.json7 "line1": "123 Main St",CODE
LOW…minimum_licenses_for_plan--PaymentMethod.create.1.json13 "name": "John Doe",CODE
LOW…automatic_license_management--Customer.retrieve.3.json22 "line1": "123 Main St",CODE
LOW…automatic_license_management--Customer.retrieve.3.json28 "name": "John Doe",CODE
LOW…ser_to_basic_plan_free_trial--Customer.retrieve.1.json22 "line1": "123 Main St",CODE
LOW…ser_to_basic_plan_free_trial--Customer.retrieve.1.json28 "name": "John Doe",CODE
LOW…e_fixtures/end_free_trial--PaymentMethod.create.1.json7 "line1": "123 Main St",CODE
LOW…e_fixtures/end_free_trial--PaymentMethod.create.1.json13 "name": "John Doe",CODE
LOW…s/free_trial_upgrade_by_card--Customer.retrieve.4.json22 "line1": "123 Main St",CODE
LOW…s/free_trial_upgrade_by_card--Customer.retrieve.4.json28 "name": "John Doe",CODE
LOW…er_complimentary_access_plan--Customer.retrieve.5.json22 "line1": "123 Main St",CODE
LOW…er_complimentary_access_plan--Customer.retrieve.5.json28 "name": "John Doe",CODE
LOW…_to_another_fixed_price_plan--Customer.retrieve.1.json22 "line1": "123 Main St",CODE
LOW…_to_another_fixed_price_plan--Customer.retrieve.1.json28 "name": "John Doe",CODE
LOW…al_urls_for_remote_server--PaymentMethod.create.1.json7 "line1": "123 Main St",CODE
LOW…al_urls_for_remote_server--PaymentMethod.create.1.json13 "name": "John Doe",CODE
LOW…de_complimentary_access_plan--Customer.retrieve.5.json22 "line1": "123 Main St",CODE
LOW…de_complimentary_access_plan--Customer.retrieve.5.json28 "name": "John Doe",CODE
LOW…m_user_to_monthly_basic_plan--Customer.retrieve.5.json22 "line1": "123 Main St",CODE
LOW…m_user_to_monthly_basic_plan--Customer.retrieve.5.json28 "name": "John Doe",CODE
LOW…nitial_remote_server_upgrade--Customer.retrieve.1.json22 "line1": "123 Main St",CODE
LOW…nitial_remote_server_upgrade--Customer.retrieve.1.json28 "name": "John Doe",CODE
LOW…omplimentary_access_customer--Customer.retrieve.6.json22 "line1": "123 Main St",CODE
957 more matches not shown…
Hallucination Indicators60 hits · 600 pts
SeverityFileLineSnippetContext
CRITICALcorporate/views/support.py13from django.core.exceptions import ValidationErrorCODE
CRITICALzilencer/models.py6from django.core.exceptions import ValidationErrorCODE
CRITICALzilencer/views.py16from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/checks.py9from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/forms.py10from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/tests/test_realm_creation.py9from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/tests/test_integrations_dev_panel.py4from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/tests/test_subs.py11from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/tests/test_import_export.py14from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/tests/test_realm_domains.py2from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/tests/test_validators.py4from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/tests/test_typed_endpoint.py5from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALzerver/tests/test_widgets.py5from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/tests/test_users.py11from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/tests/test_realm_linkifiers.py4from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/management/commands/import.py9from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/management/commands/change_password.py6from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/management/commands/change_realm_subdomain.py4from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/management/commands/create_realm.py4from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/management/commands/realm_domain.py5from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/models/custom_profile_fields.py5from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/models/linkifiers.py3from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/models/realm_playgrounds.py2from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/models/realms.py9from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/data_import/import_util.py18from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/data_import/slack_message_conversion.py8from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/actions/realm_emoji.py3from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/actions/message_send.py11from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/actions/realm_playgrounds.py1from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/lib/validator.py37from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/lib/users.py11from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/lib/narrow.py9from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/lib/email_validation.py7from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/lib/domains.py3from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/lib/external_accounts.py7from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/lib/scim.py10from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/lib/typed_endpoint_validators.py7from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/lib/drafts.py8from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/lib/exceptions.py4from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/lib/recipient_users.py3from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/lib/subscription_info.py7from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/lib/event_types.py3from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/webhooks/ifttt/view.py1from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/webhooks/grafana/view.py4from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/webhooks/jira/view.py6from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/webhooks/rhodecode/view.py3from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/webhooks/freshstatus/view.py3from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/webhooks/newrelic/view.py3from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/webhooks/zabbix/view.py1from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/webhooks/uptimerobot/view.py1from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/views/registration.py15from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/views/user_settings.py7from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/views/auth.py15from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/views/custom_profile_fields.py4from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/views/realm_linkifiers.py1from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/views/users.py7from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/views/realm_domains.py1from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/views/submessage.py2from django.core.exceptions import ValidationErrorCODE
CRITICALzerver/views/realm.py5from django.core.exceptions import ValidationErrorCODE
CRITICALzproject/backends.py33from django.core.exceptions import ValidationErrorCODE
Over-Commented Block421 hits · 368 pts
SeverityFileLineSnippetContext
LOWversion.py21# Versions of the desktop app below DESKTOP_MINIMUM_VERSION will beCOMMENT
LOWversion.py41# directions.COMMENT
LOWcorporate/models/plans.py121 next_invoice_date = models.DateTimeField(db_index=True, null=True)COMMENT
LOWcorporate/models/licenses.py21 plan = models.ForeignKey(CustomerPlan, on_delete=CASCADE)COMMENT
LOWcorporate/models/licenses.py41 # this value is usually equal to the number of activated workplace users in the organization.COMMENT
LOWcorporate/lib/decorator.py81 request, realm_uuidCOMMENT
LOWcorporate/lib/stripe.py1161 def sync_license_ledger_if_needed(self) -> None:COMMENT
LOWcorporate/lib/stripe.py1261 # or a "failed payment" email, but the in-app messaging could be clearerCOMMENT
LOWcorporate/lib/test_stripe_class.py341 # relevance, so collapse it to a placeholder.COMMENT
LOWcorporate/lib/test_stripe_class.py361 file_content = file_content.replace(COMMENT
LOW…ocumentation_crawler/documentation_crawler/settings.py21 "Mozilla/5.0 (X11; Linux x86_64) "COMMENT
LOW…ocumentation_crawler/documentation_crawler/settings.py41# COOKIES_ENABLED = FalseCOMMENT
LOW…ocumentation_crawler/documentation_crawler/settings.py61# 'documentation_crawler.middlewares.DocumentationCrawlerDownloaderMiddleware': 543,COMMENT
LOW…ocumentation_crawler/documentation_crawler/settings.py81# The maximum download delay to be set in case of high latenciesCOMMENT
LOW…tion_crawler/documentation_crawler/spiders/__init__.py1# This package will contain the spiders of your Scrapy projectCOMMENT
LOWtools/setup/emoji/custom_emoji_names.py261 # where People/144 would substitute. It'd be nice if there were anotherCOMMENT
LOWtools/setup/emoji/custom_emoji_names.py761 "1f938": {"canonical_name": "cartwheel", "aliases": ["acrobatics", "gymnastics", "tumbling"]},COMMENT
LOWtools/setup/emoji/custom_emoji_names.py1541 # 24-hour time (used in many countries), like what is 00:30 or 01:00COMMENT
LOWtools/setup/emoji/custom_emoji_names.py1561 # '1f55f': {'canonical_name': 'X', 'aliases': ['clock430']},COMMENT
LOWtools/droplets/create.py1# Creates a Zulip remote development environment droplet orCOMMENT
LOWtools/droplets/add_mentor.py1# Allows a mentor to ssh into a DigitalOcean droplet. This is designed to beCOMMENT
LOWtools/linter_lib/custom_check.py1from zulint.custom_rules import Rule, RuleListCOMMENT
LOWweb/styles/portico/billing.css181 #licensechange-loading,COMMENT
LOWweb/styles/portico/billing.css241 }COMMENT
LOWweb/styles/portico/billing.css301 legacy_landing_page.css. */COMMENT
LOWweb/styles/portico/billing.css581#remote-billing-confirm-email-intro .not-editable-realm-field,COMMENT
LOWweb/styles/portico/portico_signin.css1021 color: var(--color-link-portico-auth-hover);COMMENT
LOWweb/src/message_list_view.ts481// MessageList into the DOM, and maintaining it over time.COMMENT
LOWweb/src/message_list_view.ts501 //COMMENT
LOWweb/src/message_list_view.ts861 message_container.msg,COMMENT
LOWweb/src/message_list_view.ts1481 // This next line is a workaround for a weird scrollingCOMMENT
LOWweb/src/message_list_view.ts1641 need_user_to_scroll = false;COMMENT
LOWweb/src/message_list_view.ts1801COMMENT
LOWweb/src/lightbox.ts741 `.message_row a[href='${CSS.escape($(this).attr("data-url")!)}'] img`,COMMENT
LOWweb/src/drafts_overlay_ui.ts541 // A draft gained focus; mark it as the selected draft.COMMENT
LOWweb/src/compose_paste.ts261 // identify the intended structure of the copied content.COMMENT
LOWweb/src/compose_paste.ts581COMMENT
LOWweb/src/server_events_dispatch.js1021COMMENT
LOWweb/src/compose_validate.ts241 // There are two cases in which the `stream_id` will beCOMMENT
LOWweb/src/compose_validate.ts261 // improvement.COMMENT
LOWweb/src/bootstrap_typeahead.ts461 // Reasons to update the position of the typeahead here:COMMENT
LOWweb/src/bootstrap_typeahead.ts921 e.preventDefault();COMMENT
LOWweb/src/transmit.ts101export function reply_message(message: Message, content: string): void {COMMENT
LOWweb/src/ui_util.ts201COMMENT
LOWweb/src/popover_menus.ts281 $reference.parents("#message_feed_container, .sticky_header").length !== 1COMMENT
LOWweb/src/popover_menus.ts541 also_trigger_on_enter?: boolean;COMMENT
LOWweb/src/search.ts221 // we want to highlight the first typeahead row by defaultCOMMENT
LOWweb/src/tippyjs.ts41 }COMMENT
LOWweb/src/tippyjs.ts61// distracting users unnecessarily.COMMENT
LOWweb/src/tippyjs.ts81 // Disable animations to make the tooltips feel snappy.COMMENT
LOWweb/src/stream_create.ts421 $("#create_stream_name").val("");COMMENT
LOWweb/src/filter.ts1761COMMENT
LOWweb/src/message_view.ts561 // These two narrowing operators specify what message should beCOMMENT
LOWweb/src/message_view.ts581 // * The user is clicking a permanent link to a conversation, in whichCOMMENT
LOWweb/src/message_view.ts1001COMMENT
LOWweb/src/message_view.ts1161 superset_data: MessageListData;COMMENT
LOWweb/src/message_view.ts1181 // - add messages into our message list from our local cacheCOMMENT
LOWweb/src/message_view.ts1221 assert(first_message_in_filtered_data !== undefined);COMMENT
LOWweb/src/message_view.ts1261 // If we don't have a specific message we're hoping to selectCOMMENT
LOWweb/src/message_view.ts1281 // Full-text search and potentially other future cases whereCOMMENT
361 more matches not shown…
Self-Referential Comments111 hits · 303 pts
SeverityFileLineSnippetContext
MEDIUMcorporate/tests/test_stripe.py2208 # Create an open invoiceCOMMENT
MEDIUMcorporate/lib/stripe.py3978 # Create a new renewal invoice with updated licenses so that this becomes the lastCOMMENT
MEDIUMcorporate/lib/stripe.py4179 # Create a ledger entry for the complimentary access plan for tracking purposes.COMMENT
MEDIUMcorporate/lib/stripe.py4224 # Create a ledger entry for the community plan for tracking purposes.COMMENT
MEDIUM⚡corporate/lib/test_stripe_class.py643 # Create a PaymentMethod using the tokenCOMMENT
MEDIUMtools/setup/emoji/emoji_setup_utils.py1# This file contains various helper functions used by `build_emoji` tool.COMMENT
MEDIUMtools/lib/provision_inner.py310 # The following block is skipped when we just need the developmentCOMMENT
MEDIUMzilencer/management/commands/populate_billing_realms.py89 # Create a realm for each plan typeCOMMENT
MEDIUMzilencer/management/commands/populate_billing_realms.py287 # Create a card payment method and attach it to the customerCOMMENT
MEDIUMzilencer/management/commands/populate_billing_realms.py369 # Create a user with billing accessCOMMENT
MEDIUMzilencer/management/commands/populate_db.py983 # Create a test realm emoji.COMMENT
MEDIUMzerver/tests/test_channel_fetch.py1450 # Create a stream for which Hamlet is the only subscriber.STRING
MEDIUMzerver/tests/test_channel_fetch.py1531 # Create a private stream for which Hamlet is the only subscriber.STRING
MEDIUMzerver/tests/test_email_mirror.py1112 # Create an invalid attachment:COMMENT
MEDIUM⚡zerver/tests/test_push_notifications.py2020 # Create a message to self using PERSONAL recipient typeCOMMENT
MEDIUMzerver/tests/test_push_notifications.py639 # Create a duplicate, newer uuid-based registration for the same user to verifyCOMMENT
MEDIUMzerver/tests/test_push_notifications.py1054 # Create a simulated second server. We will take user's RemoteRealm registrationCOMMENT
MEDIUMzerver/tests/test_push_notifications.py1196 # Create the expected RemoteRealm registration and proceed with testing with aCOMMENT
MEDIUM⚡zerver/tests/test_drafts.py361 # Create a draft.COMMENT
MEDIUM⚡zerver/tests/test_drafts.py496 # Create a draft.COMMENT
MEDIUMzerver/tests/test_drafts.py448 # Create a draft.COMMENT
MEDIUMzerver/tests/test_drafts.py541 # Create a draft.COMMENT
MEDIUMzerver/tests/test_channel_creation.py349 # Creating an existing channel should return an error.COMMENT
MEDIUMzerver/tests/test_presence.py549 # Create a first presence for the user. It's the first one and has status idle,COMMENT
MEDIUMzerver/tests/test_subs.py4350 # Create a private stream with Hamlet subscribedCOMMENT
MEDIUMzerver/tests/test_subs.py4806 # Create a whole bunch of streamsCOMMENT
MEDIUMzerver/tests/test_subs.py5642 # Creating an invite-only stream is allowedCOMMENT
MEDIUMzerver/tests/test_import_export.py183 """This class is a container for shared helper functionsSTRING
MEDIUMzerver/tests/test_bots.py430 # Create a bot.COMMENT
MEDIUMzerver/tests/test_bots.py729 # Create a bot and then deactivate itCOMMENT
MEDIUMzerver/tests/test_scheduled_messages.py223 # Create a direct message group for the sender.COMMENT
MEDIUMzerver/tests/test_signup.py264 # Create a user who hasn't had historical messages addedCOMMENT
MEDIUM⚡zerver/tests/test_message_fetch.py378 # Create a direct message group between usersCOMMENT
MEDIUM⚡zerver/tests/test_message_fetch.py445 # Create a direct message group between usersCOMMENT
MEDIUM⚡zerver/tests/test_message_fetch.py468 # Create a direct message group with the userCOMMENT
MEDIUM⚡zerver/tests/test_message_fetch.py491 # Create a direct message group with the userCOMMENT
MEDIUM⚡zerver/tests/test_message_fetch.py809 # Create a direct message group with the userCOMMENT
MEDIUM⚡zerver/tests/test_message_fetch.py820 # Create a direct message group with the userCOMMENT
MEDIUMzerver/tests/test_slack_importer.py2846 # Create a user who become the realm owner, ideally this will be createdSTRING
MEDIUMzerver/tests/test_auth_backends.py9334 # Creating a mock Django form in order to keep the test simple.COMMENT
MEDIUMzerver/tests/test_auth_backends.py9369 # Creating a mock Django form in order to keep the test simple.COMMENT
MEDIUMzerver/tests/test_message_send.py3482 # Create a non-bot userCOMMENT
MEDIUMzerver/tests/test_message_send.py3486 # Create a new bot userCOMMENT
MEDIUMzerver/tests/test_reminders.py101 # Create a direct message group for hamlet's self messages.COMMENT
MEDIUMzerver/tests/test_reminders.py126 # Create a direct message group between hamlet and othello.COMMENT
MEDIUMzerver/tests/test_reminders.py469 # Create a test message to schedule a reminder for.COMMENT
MEDIUMzerver/tests/test_events.py4# This module is closely integrated with zerver/lib/event_schema.pyCOMMENT
MEDIUMzerver/tests/test_realm_linkifiers.py366 # Create a linkifier with alternative URL templates.COMMENT
MEDIUMzerver/tests/test_channel_access.py28 # Create a private stream for which Hamlet is the only subscriber.COMMENT
MEDIUMzerver/tests/test_channel_access.py92 # Create a private stream for which Hamlet is the only subscriber.COMMENT
MEDIUMzerver/tests/test_invite.py430 # Create a first userCOMMENT
MEDIUMzerver/tests/test_link_embed.py42 # The following code is taken fromCOMMENT
MEDIUMzerver/tests/test_markdown.py3493 # Create a linkifier.COMMENT
MEDIUMzerver/tests/test_markdown.py3504 # Create a topic link that potentially interferes with the pattern.COMMENT
MEDIUM⚡zerver/tests/test_markdown.py3048 # Create a linkifier.STRING
MEDIUM⚡zerver/tests/test_markdown.py3058 # Create a user that potentially interferes with the pattern.STRING
MEDIUM⚡zerver/tests/test_markdown.py3144 # Create a linkifier.STRING
MEDIUM⚡zerver/tests/test_markdown.py3154 # Create a user-group that potentially interferes with the pattern.STRING
MEDIUMzerver/tests/test_markdown.py664 # Create a userprofile and send message with it.STRING
MEDIUMzerver/tests/test_markdown.py3797 # Create a linkifier.STRING
51 more matches not shown…
Deep Nesting264 hits · 222 pts
SeverityFileLineSnippetContext
LOWcorporate/lib/support.py284CODE
LOWcorporate/lib/billing_management.py36CODE
LOWcorporate/lib/stripe.py5980CODE
LOWcorporate/lib/stripe.py1607CODE
LOWcorporate/lib/stripe.py1992CODE
LOWcorporate/lib/stripe.py2472CODE
LOWcorporate/lib/stripe.py2720CODE
LOWcorporate/lib/stripe.py2934CODE
LOWcorporate/lib/stripe.py3188CODE
LOWcorporate/lib/stripe.py3547CODE
LOWcorporate/lib/stripe.py3894CODE
LOWcorporate/lib/stripe.py4389CODE
LOWcorporate/lib/stripe.py4775CODE
LOWcorporate/lib/stripe.py4899CODE
LOWcorporate/lib/stripe.py5023CODE
LOWcorporate/lib/stripe.py5221CODE
LOWcorporate/lib/stripe.py5339CODE
LOWcorporate/lib/stripe.py5474CODE
LOWcorporate/lib/test_stripe_class.py219CODE
LOWcorporate/lib/stripe_event_handler.py127CODE
LOWcorporate/views/support.py417CODE
LOWcorporate/views/support.py772CODE
LOWcorporate/views/installation_activity.py96CODE
LOWcorporate/views/installation_activity.py140CODE
LOWcorporate/views/remote_activity.py25CODE
LOW…rawler/documentation_crawler/spiders/common/spiders.py143CODE
LOWtools/tests/test_zulint_custom_rules.py47CODE
LOWtools/lib/pretty_print.py41CODE
LOWtools/lib/template_parser.py56CODE
LOWtools/lib/template_parser.py307CODE
LOWtools/lib/template_parser.py352CODE
LOWtools/lib/test_server.py55CODE
LOWtools/lib/provision_inner.py262CODE
LOWzilencer/views.py1572CODE
LOWzilencer/management/commands/populate_billing_realms.py335CODE
LOWzilencer/management/commands/populate_billing_realms.py419CODE
LOWzilencer/management/commands/populate_billing_realms.py88CODE
LOWzilencer/management/commands/queue_rate.py40CODE
LOWzilencer/management/commands/populate_db.py1287CODE
LOWzilencer/management/commands/populate_db.py1459CODE
LOWzilencer/management/commands/populate_db.py360CODE
LOWzilencer/management/commands/render_messages.py37CODE
LOWscripts/setup/generate_secrets.py78CODE
LOWscripts/lib/sharding.py31CODE
LOWscripts/lib/supervisor.py44CODE
LOWscripts/lib/zulip_tools.py303CODE
LOWscripts/lib/zulip_tools.py727CODE
LOWzerver/decorator.py371CODE
LOWzerver/decorator.py379CODE
LOWzerver/decorator.py383CODE
LOWzerver/checks.py141CODE
LOWzerver/tests/test_compatibility.py38CODE
LOWzerver/tests/test_integrations.py123CODE
LOWzerver/tests/test_microsoft_teams_importer.py772CODE
LOWzerver/tests/test_openapi.py50CODE
LOWzerver/tests/test_openapi.py430CODE
LOWzerver/tests/test_openapi.py894CODE
LOWzerver/tests/test_digest.py793CODE
LOWzerver/tests/test_migration_status.py16CODE
LOWzerver/tests/test_auth_backends.py541CODE
204 more matches not shown…
Empty Error Handlers33 hits · 165 pts
SeverityFileLineSnippetContext
HIGHtools/lib/provision_inner.py417except FileNotFoundError:CODE
HIGHtools/lib/provision_inner.py185except FileNotFoundError:CODE
HIGHzilencer/views.py266except DNSException:CODE
HIGHscripts/lib/zulip_tools.py128except subprocess.CalledProcessError:CODE
HIGHscripts/lib/node_cache.py18except FileNotFoundError:CODE
HIGHzerver/middleware.py629except KeyError:CODE
HIGH…rver/management/commands/deliver_scheduled_messages.py34except KeyboardInterrupt:CODE
HIGHzerver/management/commands/deliver_scheduled_emails.py60except KeyboardInterrupt:CODE
HIGHzerver/models/realms.py1449except ValidationError:CODE
HIGHzerver/tornado/event_queue.py709except FileNotFoundError:CODE
HIGHzerver/actions/custom_profile_fields.py372except CustomProfileFieldValue.DoesNotExist:CODE
HIGHzerver/actions/data_import.py231except Realm.DoesNotExist:CODE
HIGHzerver/lib/validator.py314except ValidationError:CODE
HIGHzerver/lib/streams.py1071except Stream.DoesNotExist:CODE
HIGHzerver/lib/singleton_bmemcached.py48except OSError: # nocoverageCODE
HIGHzerver/lib/narrow.py951except Stream.DoesNotExist:CODE
HIGHzerver/lib/cache.py848except TypeError:CODE
HIGHzerver/lib/cache.py901except TypeError:CODE
HIGHzerver/lib/transfer.py62except FileNotFoundError:CODE
HIGHzerver/lib/transfer.py119except FileNotFoundError: # nocoverageCODE
HIGHzerver/lib/test_runner.py172except ProgrammingError:CODE
HIGHzerver/lib/test_fixtures.py324except ProgrammingError:CODE
HIGHzerver/lib/test_fixtures.py361except FileNotFoundError:CODE
HIGHzerver/lib/url_preview/preview.py87except requests.exceptions.RequestException:CODE
HIGHzerver/worker/base.py85except Exception:CODE
HIGHzerver/webhooks/jira/view.py160except UserProfile.DoesNotExist:CODE
HIGHzerver/views/registration.py698except KeyError:CODE
HIGHzerver/views/registration.py1207except StopIteration:CODE
HIGHzerver/views/auth.py1049except Realm.DoesNotExist:CODE
HIGHzerver/views/users.py682except UserProfile.DoesNotExist:CODE
HIGHzerver/views/users.py928except UserProfile.DoesNotExist:CODE
HIGHzerver/views/tusd.py268except JsonableError:CODE
HIGHzproject/email_backends.py171except Exception:CODE
Cross-Language Confusion28 hits · 156 pts
SeverityFileLineSnippetContext
HIGHzilencer/models.py428 # As noted above, remote_id may be null, so we onlyCOMMENT
HIGHzilencer/models.py430 # technically necessary, since null != null, but itCOMMENT
HIGHzilencer/models.py489 # be null; since null != null, this condition is notCOMMENT
HIGHzerver/tests/test_presence.py598 The data model now supports them being null, but the API should still returnSTRING
HIGHzerver/tests/test_validators.py327 x = to_wild_value("x", '{"a": 1, "b": ["c", false, null]}')CODE
HIGH⚡zerver/tests/test_message_fetch.py3037 subject || rendered_content)STRING
HIGHzerver/tests/test_event_queue.py1366 queue.push(in_dict)CODE
HIGHzerver/tests/test_event_queue.py1402 queue.push(event)CODE
HIGHzerver/tests/test_event_queue.py1428 queue.push(CODE
HIGHzerver/tests/test_event_queue.py1459 queue.push(CODE
HIGHzerver/tests/test_event_queue.py1470 queue.push(CODE
HIGHzerver/tests/test_event_queue.py1500 queue.push(CODE
HIGHzerver/tests/test_event_queue.py1511 queue.push(CODE
HIGHzerver/tests/test_event_queue.py1559 queue.push(event)CODE
HIGHzerver/tests/test_event_queue.py1565 queue.push({"type": "unknown", "timestamp": "1"})CODE
HIGHzerver/management/commands/audit_fts_indexes.py17 to_tsvector('zulip.english_us_search', subject || rendered_content)STRING
HIGHzerver/management/commands/audit_fts_indexes.py18 WHERE to_tsvector('zulip.english_us_search', subject || rendered_content) != search_tsvectorSTRING
HIGHzerver/models/realms.py513 # When non-null, all but the latest this many messages in the organizationCOMMENT
HIGHzerver/tornado/event_queue.py225 self.event_queue.push(event)CODE
HIGHzerver/actions/realm_linkifiers.py156 # None means unchanged. Empty string means null, normalize_optional_textCOMMENT
HIGHzerver/lib/thumbnail.py307 # content-type -- null, or empty from a blank ?mimetype= -- whichCOMMENT
HIGHzerver/lib/retention.py526 # if stream.message_retention_days is null, use the realm's policyCOMMENT
HIGHzerver/lib/markdown/fenced_code.py276 processor.push(handler)CODE
HIGHzerver/lib/markdown/fenced_code.py448 self.push(OuterHandler(self, output, self.run_content_validators, default_language))STRING
HIGHzerver/webhooks/raygun/view.py184 # Contains list of tags for the error. Can be empty (null)COMMENT
HIGHzerver/webhooks/slack/view.py76 # be null, an empty string, or None.COMMENT
HIGH⚡zerver/webhooks/sentry/tests.py149:orange_circle: **New exception:** [TypeError: can't access property "bar", x.foo is undefined](https://sentry.io/organiCODE
HIGHzproject/computed_settings.py364 # The default is null, which means no timeout; 2 is theCOMMENT
Unused Imports186 hits · 138 pts
SeverityFileLineSnippetContext
LOWcorporate/tests/test_support_views.py38CODE
LOWcorporate/tests/test_remote_billing.py42CODE
LOWcorporate/models/__init__.py1CODE
LOWcorporate/models/__init__.py2CODE
LOWcorporate/models/__init__.py3CODE
LOWcorporate/models/__init__.py4CODE
LOWcorporate/models/__init__.py5CODE
LOWcorporate/models/__init__.py6CODE
LOWcorporate/models/__init__.py7CODE
LOWcorporate/models/__init__.py8CODE
LOWcorporate/models/__init__.py9CODE
LOWcorporate/models/__init__.py10CODE
LOWcorporate/models/__init__.py11CODE
LOWcorporate/lib/test_stripe_class.py91CODE
LOWcorporate/views/billing_page.py26CODE
LOWcorporate/views/billing_page.py26CODE
LOWcorporate/views/event_status.py18CODE
LOWcorporate/views/event_status.py18CODE
LOWcorporate/views/session.py17CODE
LOWcorporate/views/session.py17CODE
LOWcorporate/views/upgrade.py23CODE
LOWcorporate/views/upgrade.py23CODE
LOWcorporate/views/sponsorship.py16CODE
LOWcorporate/views/sponsorship.py16CODE
LOWcorporate/views/portico.py31CODE
LOWcorporate/views/portico.py31CODE
LOWtools/linter_lib/custom_check.py1CODE
LOWconfirmation/models.py36CODE
LOWconfirmation/models.py36CODE
LOWzerver/decorator.py64CODE
LOWzerver/apps.py84CODE
LOWzerver/tests/test_channel_fetch.py35CODE
LOWzerver/tests/test_home.py40CODE
LOWzerver/tests/test_decorators.py64CODE
LOWzerver/tests/test_exception_filter.py1CODE
LOWzerver/tests/test_subs.py99CODE
LOWzerver/tests/test_docs.py32CODE
LOWzerver/tests/test_redis_utils.py3CODE
LOWzerver/tests/test_i18n.py19CODE
LOWzerver/tests/test_scheduled_messages.py28CODE
LOWzerver/tests/test_external.py25CODE
LOWzerver/tests/test_scim.py21CODE
LOWzerver/tests/test_signup.py97CODE
LOWzerver/tests/test_widgets.py13CODE
LOWzerver/tests/test_message_fetch.py80CODE
LOWzerver/tests/test_slack_importer.py86CODE
LOWzerver/tests/test_auth_backends.py124CODE
LOWzerver/tests/test_auth_backends.py174CODE
LOWzerver/tests/test_reminders.py25CODE
LOWzerver/tests/test_message_delete.py21CODE
LOWzerver/tests/test_invite.py82CODE
LOWzerver/tests/test_message_flags.py47CODE
LOWzerver/tests/test_settings.py19CODE
LOWzerver/tests/test_reactions.py25CODE
LOWzerver/models/__init__.py1CODE
LOWzerver/models/__init__.py2CODE
LOWzerver/models/__init__.py3CODE
LOWzerver/models/__init__.py4CODE
LOWzerver/models/__init__.py5CODE
LOWzerver/models/__init__.py6CODE
126 more matches not shown…
AI Slop Vocabulary58 hits · 116 pts
SeverityFileLineSnippetContext
MEDIUMtools/setup/emoji/custom_emoji_names.py677 # potentially fun emoji to have in conjunction with ice_cream. Put inCOMMENT
LOWtools/linter_lib/custom_check.py836 # version of the tab-based whitespace rule (we can't just useCOMMENT
MEDIUMweb/src/user_group_edit_members.ts364 // add member request as the endpoint is not so robust andCOMMENT
MEDIUMzilencer/models.py405 # are stats we track on the bouncer server itself, pertaining to the remote server.COMMENT
MEDIUMzilencer/models.py453 # stats pertaining to a realm on a remote server. For such objects, we will link toCOMMENT
MEDIUMzerver/decorator.py247 # more robust to just key off whether it was a browser viewCOMMENT
LOWzerver/middleware.py407 # just return the response without logging further.COMMENT
LOW⚡zerver/tests/test_webhooks_common.py119 # we just return a fixed dictionary.COMMENT
MEDIUMzerver/tests/test_presence.py369 # here in the response - but it's still good to test the code is robustCOMMENT
LOWzerver/tests/test_subs.py4235 streams_to_sub = streams[:1] # just add one, to make the message easier to checkCODE
MEDIUMzerver/tests/test_import_export.py1413 # More general assertions on the entire sets of audit logs pertaining to our users.COMMENT
MEDIUMzerver/tests/test_message_fetch.py1369 # Definitely forbid seeing history on private channels.COMMENT
MEDIUMzerver/tests/test_message_fetch.py1489 # Definitely, a guest user can't access the unsubscribed private channelCOMMENT
LOWzerver/tests/test_auth_backends.py3139 # and we simply use one loaded from a fixture file.COMMENT
LOWzerver/tests/test_auth_backends.py4659 # This URL isn't used in the Apple auth flow, so we just set aCOMMENT
LOWzerver/tests/test_message_flags.py125 # we should get the old message we just set to unreadCOMMENT
LOWzerver/models/messages.py502 # Certain additional flags are just set once when the UserMessageCOMMENT
MEDIUMzerver/models/realms.py75 # We include a prefix to facilitate scanning for accidentalCOMMENT
LOWzerver/models/realms.py1378 # that the previous enum setting allowed, then just return theCOMMENT
LOWzerver/tornado/django_api.py181 # Tornado process, we simply call the process_notificationCOMMENT
LOWzerver/data_import/slack.py2016 # We're not using pagination, so we don't want to loop and should just return the result.COMMENT
LOWzerver/actions/user_settings.py689 # their presence state intact - so just return withoutCOMMENT
LOWzerver/actions/streams.py1005 # we can just return early.COMMENT
LOWzerver/actions/reactions.py156 # deactivated custom emoji, so we just use the emoji name fromCOMMENT
MEDIUMzerver/actions/realm_settings.py819 # more robust for ensuring no messages belonging toCOMMENT
MEDIUMzerver/lib/event_schema.py244# robust.STRING
MEDIUMzerver/lib/event_schema.py247# simplify our types or make them more robustSTRING
LOWzerver/lib/generate_test_data.py144 # this is the hacky version where we just use inline imageCOMMENT
LOW⚡zerver/lib/users.py1004 # We just set date_joined field to UNIX epoch.COMMENT
LOWzerver/lib/users.py982 # just set bot_owner_id=None.COMMENT
LOWzerver/lib/users.py1145 # in row object, so we can just add it to result directly.COMMENT
LOWzerver/lib/narrow.py1670 # just return `None`.COMMENT
MEDIUMzerver/lib/events.py1815 # from scratch. Definitely don't need to re-query everything,COMMENT
LOWzerver/lib/rest.py75 # view function logic and just return the response.COMMENT
LOWzerver/lib/presence.py135 # just set it to a fixed value for API format compatibility.COMMENT
LOWzerver/lib/scim.py740 # we just add a hacky approach for detecting and handling this single, specificCOMMENT
LOWzerver/lib/retention.py198# We can simply use LIMIT without worrying about OFFSETs and orderingCOMMENT
LOWzerver/lib/soft_deactivation.py263 # a message, we just use the overall max message ID.COMMENT
LOW⚡zerver/lib/i18n.py95 # browser/request associated with them, and should just useCOMMENT
LOWzerver/lib/test_helpers.py395 # get rid of this abstraction entirely and just use the HTTPCOMMENT
MEDIUMzerver/lib/test_helpers.py594 var_dir = "var" # TODO make sure path is robust hereCODE
MEDIUMzerver/lib/email_notifications.py316 # structure of the URL to leverage. We can't use `relative_to_full_url()`COMMENT
MEDIUMzerver/lib/mention.py104 # In particular, user_cache is not robust to message_senderCOMMENT
LOWzerver/lib/send_email.py155 # out; as such, they just use a STATIC_URL prefix.COMMENT
LOWzerver/lib/push_notifications.py1158 # just use a colon to indicate this is the sender.COMMENT
LOWzerver/lib/markdown/tabbed_sections.py102 # Otherwise, just use the end of the entire sectionSTRING
LOWzerver/lib/upload/s3.py190 # no access key makes `generate_presigned_url` just return theCOMMENT
MEDIUM⚡zerver/webhooks/linear/tests.py31 expected_message = "[Issue](https://linear.app/webhooks/issue/WEB-44/this-is-regarding-the-outage-that-we-faced-CODE
MEDIUM⚡zerver/webhooks/linear/tests.py36 expected_message = "Satyam Bansal [commented](https://linear.app/webhooks/issue/WEB-46#comment-c7cafc52) on issuCODE
MEDIUM⚡zerver/webhooks/linear/tests.py46 expected_message = "Satyam Bansal [updated comment](https://linear.app/webhooks/issue/WEB-46#comment-c7cafc52) oCODE
MEDIUM⚡zerver/webhooks/linear/tests.py71 expected_message = "[Issue](https://linear.app/webhooks/issue/WEB-44/this-is-regarding-the-outage-that-we-faced-CODE
MEDIUMzproject/prod_settings_template.py565 ## For details on this, see the aforementioned python3-saml documentationCOMMENT
MEDIUMzproject/backends.py4245 # This is more robust than relying on storing variables in request.session.COMMENT
LOWzproject/backends.py2853 # subdomain.zulip.example.com, we would just callCOMMENT
LOWzproject/backends.py3177 # we just use the primary email address, which is always verified.COMMENT
LOWzproject/backends.py3363 # What we'd like to do with the payload is just pass it intoCOMMENT
MEDIUMzproject/backends.py3663 """Get the URL to which we must redirect in order toSTRING
LOWanalytics/views/stats.py448 # should simply use the first and last data points for theCOMMENT
Modern Structural Boilerplate104 hits · 97 pts
SeverityFileLineSnippetContext
LOW⚡corporate/lib/stripe.py4669 def update_license_ledger_if_needed(self, event_time: datetime) -> None:CODE
LOW…ickapps/prepare_digital_ocean_one_click_app_release.py58def set_api_request_retry_limits(api_object: digitalocean.baseapi.BaseAPI) -> None:CODE
LOWtools/lib/test_server.py26def set_up_django(external_host: str) -> None:CODE
LOW⚡zilencer/auth.py39logger = logging.getLogger(__name__)CODE
LOWzilencer/views.py117logger = logging.getLogger(__name__)CODE
LOWzilencer/management/commands/add_mock_conversation.py38 def set_avatar(self, user: UserProfile, filename: str) -> None:STRING
LOWzilencer/lib/push_notifications.py24logger = logging.getLogger(__name__)CODE
LOW⚡zerver/tests/test_retention.py117 def _set_realm_message_retention_value(self, realm: Realm, retention_period: int) -> None:CODE
LOW⚡zerver/tests/test_realm.py2765 def update_with_realm_default_api(self, name: str, val: Any) -> None:CODE
LOWzerver/tests/test_import_export.py3574 def set_favorite_city(user: UserProfile, city: str) -> None:CODE
LOWzerver/tests/test_user_topics.py298 def set_topic_visibility_for_user(user: UserProfile, visibility_policy: int) -> None:CODE
LOWzerver/tests/test_user_topics.py517 def set_topic_visibility_for_user(user: UserProfile, visibility_policy: int) -> None:CODE
LOWzerver/tests/test_parallel.py254 def set_file_logger(output_dir: str) -> None:CODE
LOW⚡zerver/tests/test_message_fetch.py3027 def _update_tsvector_index(self) -> None:CODE
LOWzerver/tests/test_message_fetch.py5869 def update_message(self, msg: Message, content: str) -> None:CODE
LOW⚡zerver/tests/test_markdown.py3256 def update_message_and_check_flag(content: str, mentioned: bool) -> None:STRING
LOWzerver/tests/test_messages.py39 def set_presence(user: UserProfile, client_name: str, ago: int) -> None:CODE
LOWzerver/management/commands/deliver_scheduled_emails.py23logger = logging.getLogger(__name__)CODE
LOWzerver/management/commands/enqueue_digest_emails.py14logger = logging.getLogger(__name__)CODE
LOWzerver/management/commands/update_subscriber_counts.py18logger = logging.getLogger(__name__)CODE
LOW…ment/commands/update_channel_recently_active_status.py12logger = logging.getLogger(__name__)CODE
LOW⚡zerver/models/users.py965 def set_password(self, password: str | None) -> None:CODE
LOWzerver/models/scheduled_jobs.py225 def set_topic_name(self, topic_name: str) -> None:CODE
LOWzerver/models/messages.py282 def set_topic_name(self, topic_name: str) -> None:CODE
LOWzerver/openapi/merge_api_changelogs.py99def update_feature_level_in_api_docs(new_feature_level: int) -> None:CODE
LOW⚡zerver/openapi/python_examples.py676def update_realm_profile_field(client: Client, field_id: int) -> None:CODE
LOWzerver/openapi/python_examples.py118def set_moderation_request_channel(client: Client, channel: str | None = "core team") -> None:CODE
LOWzerver/openapi/python_examples.py288def update_presence(client: Client) -> None:CODE
LOWzerver/openapi/python_examples.py324def update_status(client: Client) -> None:CODE
LOWzerver/openapi/python_examples.py552def update_user(client: Client) -> None:CODE
LOWzerver/openapi/python_examples.py720def update_realm_filter(client: Client, filter_id: int) -> None:CODE
LOWzerver/openapi/python_examples.py892def update_bot_storage(client: Client) -> None:CODE
LOWzerver/openapi/python_examples.py991def update_stream(client: Client, stream_id: int) -> None:CODE
LOWzerver/openapi/python_examples.py1116def update_user_topic(client: Client) -> None:CODE
LOWzerver/openapi/python_examples.py1211def update_subscription_settings(client: Client) -> None:CODE
LOWzerver/openapi/python_examples.py1239def update_subscription_property(client: Client) -> None:CODE
LOWzerver/openapi/python_examples.py1384def update_navigation_views(client: Client) -> None:CODE
LOWzerver/openapi/python_examples.py1581def update_message(client: Client, message_id: int, prev_content: str) -> None:CODE
LOWzerver/openapi/python_examples.py1662def update_message_flags(client: Client) -> None:CODE
LOWzerver/openapi/python_examples.py1776def update_settings(client: Client) -> None:CODE
LOWzerver/openapi/python_examples.py1941def set_typing_status(client: Client) -> None:CODE
LOWzerver/openapi/python_examples.py1999def set_message_edit_typing_status(client: Client, message_id: int) -> None:CODE
LOWzerver/openapi/python_examples.py2107def update_user_group(client: Client, user_group_id: int) -> None:CODE
LOWzerver/openapi/python_examples.py2121def update_user_group_members(client: Client, user_group_id: int) -> None:CODE
LOW⚡zerver/tornado/descriptors.py15def set_descriptor_by_handler_id(handler_id: int, client_descriptor: "ClientDescriptor") -> None:CODE
LOWzerver/tornado/descriptors.py30def set_current_port(port: int) -> None:CODE
LOWzerver/actions/user_settings.py423def set_avatar_to_default(user_profile: UserProfile, *, acting_user: UserProfile | None) -> None:CODE
LOWzerver/actions/message_edit.py433 def update_flag(um: UserMessage, should_set: bool, flag: int) -> None:CODE
LOWzerver/actions/presence.py21logger = logging.getLogger(__name__)CODE
LOWzerver/actions/user_activity.py29def update_user_activity_interval(user_profile: UserProfile, log_time: datetime) -> None:CODE
LOWzerver/lib/queue.py365 def set_qos(frame: Any) -> None:CODE
LOWzerver/lib/queue.py433def set_queue_client(queue_client: SimpleQueueClient | TornadoQueueClient) -> None:CODE
LOWzerver/lib/digest.py45logger = logging.getLogger(__name__)CODE
LOWzerver/lib/fix_unreads.py25def update_unread_flags(cursor: CursorWrapper, user_message_ids: list[int]) -> None:CODE
LOWzerver/lib/zstd_level9.py4__all__ = ["compress", "decompress"]CODE
LOWzerver/lib/rate_limiter.py30logger = logging.getLogger(__name__)CODE
LOW⚡zerver/lib/message.py1402def update_first_visible_message_id(realm: Realm) -> None:CODE
LOWzerver/lib/avatar.py25logger = logging.getLogger(__name__)CODE
LOWzerver/lib/notes.py49 def set_notes(cls, key: _KeyT, notes: _DataT) -> None:CODE
LOWzerver/lib/bot_storage.py36def set_bot_storage(bot_profile: UserProfile, entries: list[tuple[str, str]]) -> None:CODE
44 more matches not shown…
Excessive Try-Catch Wrapping73 hits · 74 pts
SeverityFileLineSnippetContext
LOWcorporate/lib/stripe.py1361 except Exception as e:CODE
LOWcorporate/lib/stripe.py1664 except Exception as e: # nocoverageCODE
LOWcorporate/lib/stripe.py1691 except Exception as e:CODE
LOWcorporate/lib/stripe.py1726 except Exception as e: # nocoverageCODE
LOWcorporate/lib/stripe.py5997 except Exception as e:CODE
LOWcorporate/lib/stripe_event_handler.py67 except Exception:CODE
LOWcorporate/views/webhook.py48 except Exception:CODE
LOWcorporate/views/remote_billing_page.py221 except Exception: # nocoverageCODE
LOWcorporate/views/upgrade.py72 except Exception:CODE
LOWcorporate/views/upgrade.py122 except Exception: # nocoverageCODE
LOWcorporate/views/upgrade.py172 except Exception: # nocoverageCODE
LOWcorporate/views/installation_activity.py329 except Exception:CODE
LOWtools/lib/provision_inner.py258 except Exception:CODE
LOW⚡zilencer/views.py469 except Exception: # nocoverageCODE
MEDIUM…t/commands/manage_push_registration_encryption_keys.py39 print("Error: Please provide either --add or --remove-key <public-key>.")STRING
MEDIUM…t/commands/manage_push_registration_encryption_keys.py66 print("Error: No key pair found for the given public key.")STRING
LOWzerver/decorator.py400 except Exception as err:CODE
LOWzerver/decorator.py829 except Exception as err:CODE
MEDIUMzerver/tests/test_docs.py42 print("Error processing URL:", url)CODE
LOWzerver/tests/test_openapi.py467 except Exception: # nocoverageSTRING
LOWzerver/tests/test_queue.py74 except Exception:CODE
LOWzerver/management/commands/register_server.py230 except Exception:CODE
LOWzerver/management/commands/sync_ldap_user_data.py59 except Exception:CODE
LOWzerver/management/commands/process_queue.py28 except Exception:CODE
LOWzerver/tornado/handlers.py80 except Exception as e:CODE
LOW⚡zerver/tornado/event_queue.py1863 except Exception:CODE
LOWzerver/tornado/event_queue.py237 except Exception:CODE
LOWzerver/tornado/event_queue.py716 except Exception:CODE
LOWzerver/data_import/microsoft_teams.py589 except Exception: # nocoverageCODE
LOWzerver/data_import/slack.py1221 except Exception:CODE
LOWzerver/actions/scheduled_messages.py458 except Exception as e:CODE
LOWzerver/actions/data_import.py192 except Exception as e:CODE
LOWzerver/lib/event_schema.py139 except Exception: # nocoverageCODE
LOWzerver/lib/widget.py142 except Exception:CODE
LOWzerver/lib/widget.py147 except Exception:CODE
LOWzerver/lib/export.py829 except Exception:CODE
LOWzerver/lib/export.py3158 except Exception:STRING
LOWzerver/lib/logging_util.py64 except Exception:CODE
LOWzerver/lib/import_realm.py647 except Exception:STRING
LOWzerver/lib/attachments.py49 except Exception:CODE
LOWzerver/lib/captcha.py91 except Exception:CODE
LOWzerver/lib/zulip_update_announcements.py812 except Exception: # nocoverageSTRING
LOWzerver/lib/mobile_auth_otp.py50 except Exception:CODE
LOW⚡zerver/lib/soft_deactivation.py391 except Exception: # nocoverageCODE
LOWzerver/lib/email_notifications.py239 except Exception as e:CODE
LOWzerver/lib/parallel.py38 except Exception:CODE
LOWzerver/lib/send_email.py476 except Exception:CODE
LOWzerver/lib/markdown/__init__.py2690 except Exception:CODE
LOWzerver/lib/markdown/fenced_code.py516 except Exception:CODE
LOWzerver/worker/missedmessage_emails.py143 except Exception:CODE
LOWzerver/worker/missedmessage_emails.py266 except Exception:CODE
LOWzerver/worker/deferred_work.py133 except Exception:CODE
LOWzerver/worker/base.py85 except Exception:CODE
LOWzerver/worker/base.py213 except Exception as e:CODE
MEDIUMzerver/worker/base.py80def check_and_send_restart_signal() -> None:CODE
LOWzerver/webhooks/librato/view.py179 except Exception as e:CODE
LOW⚡zerver/webhooks/sentry/tests.py139 except Exception as e:CODE
LOWzerver/webhooks/sentry/tests.py75 except Exception as e:CODE
LOWzerver/views/home.py149 except Exception:CODE
LOWzerver/views/health.py21 except Exception: # nocoverageCODE
13 more matches not shown…
Structural Annotation Overuse47 hits · 73 pts
SeverityFileLineSnippetContext
LOWtools/droplets/README.md13## Step 1: Join Zulip DigitalOcean teamCOMMENT
LOWtools/droplets/README.md19## Step 2: Create your DigitalOcean API tokenCOMMENT
LOWtools/droplets/README.md30## Step 3: Configure create.pyCOMMENT
LOWweb/src/sidebar_ui.ts554 // NOTE: This function is designed to be used for keyboard navigation purposes.COMMENT
LOWweb/src/dropdown_widget.ts794 // NOTE: This function needs to be explicitly called when you want to update theCOMMENT
LOWweb/src/message_list_data.ts280 // NOTE: This function returns the first unread that was fetched and is notCOMMENT
LOW.claude/skills/debug-node-coverage/SKILL.md24## Step 1: Read the uncovered linesCOMMENT
LOW.claude/skills/debug-node-coverage/SKILL.md37## Step 2: Find the test fileCOMMENT
LOW⚡.claude/skills/debug-node-coverage/SKILL.md50## Step 3: Add tests for testable codeCOMMENT
LOW⚡.claude/skills/debug-node-coverage/SKILL.md57## Step 4: Handle unreachable assertionsCOMMENT
LOW⚡.claude/skills/debug-node-coverage/SKILL.md62## Step 5: VerifyCOMMENT
LOWdocs/development/setup-recommended.md90### Step 0: Set up Git & GitHubCOMMENT
LOWdocs/development/setup-recommended.md101### Step 1: Install prerequisitesCOMMENT
LOWdocs/development/setup-recommended.md278### Step 2: Get Zulip codeCOMMENT
LOWdocs/development/setup-recommended.md312### Step 3: Start the development environmentCOMMENT
LOWdocs/development/setup-recommended.md443### Step 4: DevelopingCOMMENT
LOWdocs/development/request-remote.md14## Step 1: Join GitHub and create SSH keysCOMMENT
LOWdocs/development/request-remote.md23## Step 2: Create a fork of zulip/zulipCOMMENT
LOWdocs/development/request-remote.md38## Step 3: Make request via chat.zulip.orgCOMMENT
LOWdocs/subsystems/onboarding-steps.md14### Step 1: Add the Onboarding Step NameCOMMENT
LOWdocs/subsystems/onboarding-steps.md28### Step 2: Display the Onboarding StepCOMMENT
LOWdocs/subsystems/onboarding-steps.md35### Step 3: Mark the Onboarding Step as ReadCOMMENT
LOWdocs/production/install.md36## Step 0: Set up a base serverCOMMENT
LOWdocs/production/install.md42## Step 1: Download the latest releaseCOMMENT
LOWdocs/production/install.md57## Step 2: Install ZulipCOMMENT
LOWdocs/production/install.md166## Step 3: Create a Zulip organization, and log inCOMMENT
LOWdocs/production/postgresql.md41#### Step 1: Choose database name and usernameCOMMENT
LOWdocs/production/postgresql.md47#### Step 1: Set up ZulipCOMMENT
LOWdocs/production/postgresql.md62#### Step 3: Create the PostgreSQL databaseCOMMENT
LOWdocs/production/postgresql.md78#### Step 4: Configure Zulip to use the PostgreSQL databaseCOMMENT
LOWdocs/production/postgresql.md113#### Step 1: Set up ZulipCOMMENT
LOWdocs/production/postgresql.md124#### Step 2: Create the PostgreSQL database serverCOMMENT
LOWdocs/production/postgresql.md143#### Step 3: Configure Zulip to use the PostgreSQL databaseCOMMENT
LOWdocs/webhooks/incoming-webhooks-walkthrough.md15## Step 0: Create fixturesCOMMENT
LOWdocs/webhooks/incoming-webhooks-walkthrough.md103## Step 1: Initialize the python packageCOMMENT
LOWdocs/webhooks/incoming-webhooks-walkthrough.md111## Step 2: Write the main webhook codeCOMMENT
LOWdocs/webhooks/incoming-webhooks-walkthrough.md221## Step 3: Create an API endpoint for the webhookCOMMENT
LOWdocs/webhooks/incoming-webhooks-walkthrough.md261## Step 4: Manually test the webhookCOMMENT
LOWdocs/webhooks/incoming-webhooks-walkthrough.md371## Step 5: Create automated testsCOMMENT
LOWdocs/webhooks/incoming-webhooks-walkthrough.md462## Step 6: Document the integrationCOMMENT
LOWdocs/webhooks/incoming-webhooks-walkthrough.md496## Step 7: Prepare a pull requestCOMMENT
LOWdocs/git/pull-requests.md28### Step 0: Make sure you're on a feature branch (not `main`)COMMENT
LOWdocs/git/pull-requests.md40### Step 1: Update your branch with git rebaseCOMMENT
LOWdocs/git/pull-requests.md66### Step 2: Push your updated branch to your remote forkCOMMENT
LOWdocs/git/pull-requests.md103### Step 3: Open the pull requestCOMMENT
LOWdocs/git/cloning.md95## Step 2: Set up the Zulip development environmentCOMMENT
LOWdocs/git/cloning.md102## Step 3: Configure continuous integration for your forkCOMMENT
Redundant / Tautological Comments48 hits · 64 pts
SeverityFileLineSnippetContext
LOWcorporate/tests/test_remote_billing.py812 # Check if zephyr and lear were deactivatedCOMMENT
LOWcorporate/lib/stripe.py807 # Check if customer has any $0 invoices.COMMENT
LOWcorporate/lib/stripe.py1980 # Check if the customer is scheduled for an upgrade.COMMENT
LOWcorporate/lib/stripe.py2502 # Check if user has already paid for the plan by invoice.COMMENT
LOWcorporate/lib/stripe.py2959 # Check if user was successful in adding a card and we are rendering the page again.COMMENT
LOWzilencer/views.py259 # Check if the domain has an MX recordCOMMENT
LOWzilencer/views.py269 # Check if the A/AAAA exist, for better error reportingCOMMENT
LOWscripts/lib/puppet_cache.py40 # Check if a cached version already existsCOMMENT
LOWzerver/context_processors.py102 # Check if view function is in corporate app.COMMENT
LOWzerver/tests/test_user_status.py143 # Set Hamlet to in a meeting.COMMENT
LOWzerver/tests/test_realm_playgrounds.py21 # Check if the actual object existsCOMMENT
LOWzerver/tests/test_audit_log.py2196 # Set workplace_users_group to an anonymous group containing the groupCOMMENT
LOWzerver/tests/test_audit_log.py2365 # Set workplace_users_group to an anonymous group containing the groupCOMMENT
LOWzerver/tests/test_user_topics.py356 # Verify if events are sent properlyCOMMENT
LOWzerver/tests/test_user_topics.py424 # Verify if events are sent properlyCOMMENT
LOWzerver/tests/test_user_topics.py575 # Verify if events are sent properlyCOMMENT
LOWzerver/tests/test_user_topics.py643 # Verify if events are sent properlyCOMMENT
LOWzerver/tests/test_tutorial.py191 # Check if Welcome bot still replies for bot commandsCOMMENT
LOWzerver/tests/test_user_groups.py2714 # Check if members of a NamedUserGroup are allowed to create user groups.COMMENT
LOWzerver/tests/test_user_groups.py2725 # Check if members of an anonymous group are allowed to create user groups.COMMENT
LOWzerver/tests/test_user_groups.py3062 # Check if members of a NamedUserGroup are allowed to add/remove members.COMMENT
LOWzerver/tests/test_user_groups.py3078 # Check if members of an anonymous group are allowed to add/remove members.COMMENT
LOWzerver/tests/test_user_groups.py3378 # Set permissions to manage the group and adding others to groupCOMMENT
LOWzerver/tests/test_scheduled_messages.py658 # Check if another user can access these scheduled messages.COMMENT
LOWzerver/tests/test_queue_worker.py305 # Set ourself to stop at the top of the next loop, butCOMMENT
LOWzerver/tests/test_signup.py1896 # Check if user is subscribed to the streams of defaultCOMMENT
LOWzerver/tests/test_signup.py2035 # Check if user is subscribed to the streams of defaultCOMMENT
LOWzerver/tests/test_message_fetch.py4518 # Check if the anchor value in response is correct for differentCOMMENT
LOWzerver/tests/test_slack_importer.py2868 # Check if we cannot find the realm, preregistration_realm is revoked.STRING
LOWzerver/tests/test_slack_importer.py2894 # Check if we render a form for user to select a user if thereSTRING
LOWzerver/tests/test_auth_backends.py370 # Verify if a realm has password auth disabled, correct password is rejectedCOMMENT
LOWzerver/tests/test_example.py528 # Set limit to edit message content.COMMENT
LOWzerver/openapi/test_curl_examples.py98 # Set AUTHENTICATION_LINE to default_authentication_line.COMMENT
LOWzerver/data_import/slack_message_conversion.py164 # Check if there's a pipe with text after itSTRING
LOWzerver/actions/message_send.py1435 # Check if this is a 1:1 DM between a user and the Welcome Bot,COMMENT
LOWzerver/actions/presence.py260 # Check if the row was actually created or if weSTRING
LOWzerver/lib/narrow.py1662 # Check if channel exists.COMMENT
LOWzerver/lib/import_realm.py2270 # Set it to the latest level to avoid receiving older update messages.STRING
LOWzerver/lib/test_runner.py314 # Check if we are in serial mode to avoid unnecessarily making a directory.COMMENT
LOWzerver/lib/markdown/__init__.py1210 # Set text to initial input, so simple clients translatingCOMMENT
LOWzerver/webhooks/teamcity/view.py116 # Check if this is a personal build, and if so try to direct message the user who triggered it.STRING
LOWzerver/views/auth.py554 # Check if the mobile URL is overridden in settings, if so, replace itCOMMENT
LOWzerver/views/upload.py294 # Check if this is something that we thumbnail at allCOMMENT
LOWzerver/views/tusd.py335 # Check if unauthenticated requests are for realm creationCOMMENT
LOWzproject/default_settings.py100# Set this to True to enforce that any configured IdP needs to specifyCOMMENT
LOWzproject/default_settings.py778# Set it to None to disable it.COMMENT
LOWzproject/backends.py645 # Check if the email ends with LDAP_APPEND_DOMAINCOMMENT
LOWzproject/dev_settings.py24# Check if test_settings.py set EXTERNAL_HOST.COMMENT
AI Structural Patterns80 hits · 62 pts
SeverityFileLineSnippetContext
LOWcorporate/views/support.py160CODE
LOWcorporate/views/support.py210CODE
LOWcorporate/views/support.py263CODE
LOWcorporate/views/support.py417CODE
LOWcorporate/views/support.py772CODE
LOWcorporate/views/upgrade.py223CODE
LOWcorporate/views/upgrade.py258CODE
LOWcorporate/views/upgrade.py293CODE
LOWconfirmation/models.py199CODE
LOWzerver/forms.py403CODE
LOWzerver/tests/test_scheduled_messages.py67CODE
LOWzerver/tests/test_auth_backends.py814CODE
LOWzerver/tests/test_auth_backends.py871CODE
LOWzerver/tests/test_auth_backends.py881CODE
LOWzerver/tests/test_auth_backends.py3074CODE
LOWzerver/tests/test_auth_backends.py4679CODE
LOWzerver/tests/test_auth_backends.py4794CODE
LOWzerver/tests/test_auth_backends.py4838CODE
LOWzerver/tests/test_reminders.py52CODE
LOWzerver/tests/test_events.py350CODE
LOWzerver/tests/test_message_delete.py398CODE
LOWzerver/tests/test_message_delete.py403CODE
LOWzerver/tests/test_message_delete.py408CODE
LOWzerver/tests/test_message_delete.py413CODE
LOWzerver/tests/test_message_delete.py576CODE
LOWzerver/tests/test_message_delete.py580CODE
LOWzerver/tests/test_message_delete.py584CODE
LOWzerver/tests/test_message_delete.py588CODE
LOWzerver/tests/test_invite.py213CODE
LOWzerver/tests/test_email_change.py55CODE
LOWzerver/tests/test_settings.py529CODE
LOWzerver/tests/test_reactions.py701CODE
LOWzerver/tests/test_reactions.py709CODE
LOWzerver/tests/test_reactions.py717CODE
LOWzerver/tornado/django_api.py86CODE
LOWzerver/tornado/views.py149CODE
LOWzerver/actions/create_user.py507CODE
LOWzerver/actions/message_send.py701CODE
LOWzerver/actions/message_send.py1597CODE
LOWzerver/actions/message_send.py1866CODE
LOWzerver/actions/message_send.py2075CODE
LOWzerver/actions/create_realm.py190CODE
LOWzerver/lib/create_user.py150CODE
LOWzerver/lib/streams.py371CODE
LOWzerver/lib/streams.py2072CODE
LOWzerver/lib/events.py167CODE
LOWzerver/lib/events.py2106CODE
LOWzerver/lib/export.py570CODE
LOWzerver/lib/test_helpers.py378CODE
LOWzerver/lib/send_email.py88CODE
LOWzerver/lib/send_email.py271CODE
LOWzerver/lib/send_email.py359CODE
LOWzerver/lib/integrations.py151CODE
LOWzerver/lib/integrations.py284CODE
LOWzerver/lib/integrations.py326CODE
LOWzerver/lib/test_classes.py572CODE
LOWzerver/lib/test_classes.py887CODE
LOWzerver/lib/test_classes.py1346CODE
LOWzerver/lib/markdown/__init__.py2554CODE
LOWzerver/lib/markdown/__init__.py2725CODE
20 more matches not shown…
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHzerver/tests/test_submessage.py0tests that `send_event_rollback_unsafe` is hooked to `transaction.on_commit`. this is important, because we don't want tSTRING
HIGHzerver/tests/test_message_delete.py0tests that `send_event_rollback_unsafe` is hooked to `transaction.on_commit`. this is important, because we don't want tSTRING
HIGHzerver/tests/test_reactions.py0tests that `send_event_rollback_unsafe` is hooked to `transaction.on_commit`. this is important, because we don't want tSTRING
HIGHzerver/webhooks/freshstatus/view.py0hi there! your bot {bot_name} just received a uptimerobot payload that is missing some data that zulip requires. this usSTRING
HIGHzerver/webhooks/zabbix/view.py0hi there! your bot {bot_name} just received a uptimerobot payload that is missing some data that zulip requires. this usSTRING
HIGHzerver/webhooks/uptimerobot/view.py0hi there! your bot {bot_name} just received a uptimerobot payload that is missing some data that zulip requires. this usSTRING
Verbosity Indicators13 hits · 16 pts
SeverityFileLineSnippetContext
LOWweb/src/message_list_tooltips.ts155 // Thus, we need to check if the date string contains a digit or not using regex,COMMENT
LOWweb/src/popover_menus.ts387 // For other browsers, we need to check if the focused element is an text field andCOMMENT
LOWweb/src/message_view.ts518 // we need to check if the narrow is allowed for spectator here too.COMMENT
LOWweb/src/message_parser.ts6// We need to check if the message content contains the specified HTMLCOMMENT
LOWweb/src/inbox_ui.ts345 // Before we set the filter, we need to check if the inbox view is already visible.COMMENT
LOWweb/src/message_util.ts140 // If not, we need to check if the current filter matches the DM view weCOMMENT
LOWweb/src/message_notifications.ts322 // And then we need to check if the message is a direct message,COMMENT
LOWweb/src/message_notifications.ts390 // And then we need to check if the message is a direct message,COMMENT
LOWweb/src/message_list.ts189 // TODO: For supporting other narrows, we need to check if we have fetched the firstCOMMENT
LOWzerver/lib/message.py1657 # Now we need to check if the user initiated the topic.COMMENT
LOWzerver/lib/send_email.py841 The purpose of this function is to log (potential) config errors,STRING
LOWzproject/backends.py1573 The purpose of this function is to take a UserProfile meant for syncing with LDAP,STRING
LOWzproject/backends.py3485 to note this detail. The purpose of this function is merely as a helper to figure out whichSTRING
Slop Phrases8 hits · 13 pts
SeverityFileLineSnippetContext
LOWtools/screenshots/for-events.json15 "content": "Welcome everyone! Here are the slides for the keynote talk: [keynote-slides.ppt](#). Don't fCODE
LOWzerver/tornado/event_queue.py146 # If you add a new key to this dict, make sure you add appropriateCOMMENT
LOWzerver/tornado/event_queue.py370 # If you add a new key to this dict, make sure you add appropriateCOMMENT
LOWzerver/tornado/django_api.py110 # We make sure to pre-fill the narrow user cache, to saveCOMMENT
MEDIUMzerver/lib/export.py388 # you can add your new table to `ALL_ZULIP_TABLES` andCOMMENT
LOWzerver/lib/import_realm.py152# make sure to reload related tables AFTER we re-map the ids.COMMENT
LOWpuppet/kandra/files/nagios4/nagios.cfg717# patches to Nagios. Nagios is critical to you - make sure you keep it inCOMMENT
LOWpuppet/kandra/files/nagios4/nagios.cfg994# rescheduled, make sure you have orphaned service checks enabled.COMMENT
TODO Padding7 hits · 10 pts
SeverityFileLineSnippetContext
LOWcorporate/tests/test_stripe_remote_realm.py525 # TODO: Add test for invoice generation once that's implemented.COMMENT
LOWcorporate/tests/test_stripe_remote_server.py610 # TODO: Add test for invoice generation once that's implemented.COMMENT
LOWcorporate/tests/test_remote_billing.py612 # TODO: Add test for the case when redirected to error page (not yet implemented)COMMENT
LOWcorporate/tests/test_remote_billing.py1442 # TODO: Add test for the case when redirected to error page (not yet implemented)COMMENT
LOWcorporate/tests/test_remote_billing.py1564 # TODO: Add test for the case when redirected to error page (Not yet implemented)COMMENT
LOWcorporate/models/stripe_state.py130 # TODO: Add test for this case. Not sure how to trigger naturally.COMMENT
LOWcorporate/lib/stripe.py3147 # TODO: Add test coverage. Right now, this logic is usedCOMMENT
Cross-Language Confusion (JS/TS)2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHweb/src/info_overlay.ts175 print("Zulip")CODE
HIGHweb/src/info_overlay.ts183 print("Zulip")CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHanalytics/lib/counts.py1012 # mobile devices, as requested by the remote server. ThereforeCOMMENT
Overly Generic Function Names3 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡zerver/tests/test_decorators.py1395 def test_function(request: HttpRequest) -> HttpResponse:CODE
LOW⚡zerver/tests/test_decorators.py1411 def test_function(request: HttpRequest) -> HttpResponse:CODE
LOWzerver/tests/test_outgoing_webhook_system.py255 def helper(side_effect: Any, error_text: str) -> None:CODE
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMzerver/lib/markdown/__init__.py2289 # ---------------------------------------------------COMMENT