AI Slop Code RIsk Monitor

polarsource/polar

Polar — A billing platform for the intelligence era

20.0 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for polarsource/polar, a Python project with 10,350 GitHub stars. SynthScan examined 1,053,259 lines of code across 4989 source files, recording 11367 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 20.0 (Elevated pattern signal); it is not an authorship estimate.

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

20.0
Adjusted Signal
20.0
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
10.3K
Stars
Python
Language
1.1M
Lines of Code
5.0K
Files
11.4K
Pattern Hits
2026-10-12
Scan Date
0.48
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 32.8/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 4.9/100 · LOW

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

Agent Over-Engineering Ratio 57.1/100 · HIGH

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

PR Review Velocity Impact 68.3/100 · HIGH

Which changes need focused human review? 11367 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 1HIGH 2382MEDIUM 445LOW 8539

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 11367 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.

Cross-File Repetition2034 hits · 10170 pts
SeverityFileLineSnippetContext
HIGHserver/polar/organization/schemas.py0feature settings that organizations can update themselves. other feature settings are managed by polar staff: they're igSTRING
HIGHsdk/python/polar/v2027_01/inputs.py0feature settings that organizations can update themselves. other feature settings are managed by polar staff: they're igSTRING
HIGHsdk/python/polar/v2026_10/inputs.py0feature settings that organizations can update themselves. other feature settings are managed by polar staff: they're igSTRING
HIGHsdk/python/polar/v2026_04/inputs.py0feature settings that organizations can update themselves. other feature settings are managed by polar staff: they're igSTRING
HIGHserver/polar/webhook/schemas.py0a webhook event. an event represent something that happened in the system that should be sent to the webhook endpoint. iSTRING
HIGHsdk/python/polar/v2027_01/outputs.py0a webhook event. an event represent something that happened in the system that should be sent to the webhook endpoint. iSTRING
HIGHsdk/python/polar/v2026_10/outputs.py0a webhook event. an event represent something that happened in the system that should be sent to the webhook endpoint. iSTRING
HIGHsdk/python/polar/v2026_04/outputs.py0a webhook event. an event represent something that happened in the system that should be sent to the webhook endpoint. iSTRING
HIGHserver/polar/webhook/webhooks.py0sent when a new checkout is created. **discord & slack support:** basicSTRING
HIGHsdk/python/polar/v2027_01/webhooks.py0sent when a new checkout is created. **discord & slack support:** basicSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a new checkout is created. **discord & slack support:** basicSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a new checkout is created. **discord & slack support:** basicSTRING
HIGHserver/polar/webhook/webhooks.py0sent when a checkout is updated. **discord & slack support:** basicSTRING
HIGHsdk/python/polar/v2027_01/webhooks.py0sent when a checkout is updated. **discord & slack support:** basicSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a checkout is updated. **discord & slack support:** basicSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a checkout is updated. **discord & slack support:** basicSTRING
HIGHserver/polar/webhook/webhooks.py0sent when a checkout expires. this event fires when a checkout reaches its expiration time without being completed. deveSTRING
HIGHsdk/python/polar/v2027_01/webhooks.py0sent when a checkout expires. this event fires when a checkout reaches its expiration time without being completed. deveSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a checkout expires. this event fires when a checkout reaches its expiration time without being completed. deveSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a checkout expires. this event fires when a checkout reaches its expiration time without being completed. deveSTRING
HIGHserver/polar/webhook/webhooks.py0sent when a new customer is created. a customer can be created: * after a successful checkout. * programmatically via thSTRING
HIGHsdk/python/polar/v2027_01/webhooks.py0sent when a new customer is created. a customer can be created: * after a successful checkout. * programmatically via thSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a new customer is created. a customer can be created: * after a successful checkout. * programmatically via thSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a new customer is created. a customer can be created: * after a successful checkout. * programmatically via thSTRING
HIGHserver/polar/webhook/webhooks.py0sent when a customer is updated. this event is fired when the customer details are updated. if you want to be notified wSTRING
HIGHsdk/python/polar/v2027_01/webhooks.py0sent when a customer is updated. this event is fired when the customer details are updated. if you want to be notified wSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a customer is updated. this event is fired when the customer details are updated. if you want to be notified wSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a customer is updated. this event is fired when the customer details are updated. if you want to be notified wSTRING
HIGHserver/polar/webhook/webhooks.py0sent when a customer is deleted. **discord & slack support:** basicSTRING
HIGHsdk/python/polar/v2027_01/webhooks.py0sent when a customer is deleted. **discord & slack support:** basicSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a customer is deleted. **discord & slack support:** basicSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a customer is deleted. **discord & slack support:** basicSTRING
HIGHserver/polar/webhook/webhooks.py0sent when a customer state has changed. it's triggered when: * customer is created, updated or deleted. * a subscriptionSTRING
HIGHsdk/python/polar/v2027_01/webhooks.py0sent when a customer state has changed. it's triggered when: * customer is created, updated or deleted. * a subscriptionSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a customer state has changed. it's triggered when: * customer is created, updated or deleted. * a subscriptionSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a customer state has changed. it's triggered when: * customer is created, updated or deleted. * a subscriptionSTRING
HIGHserver/polar/webhook/webhooks.py0sent when a new customer seat is assigned. this event is triggered when a seat is assigned to a customer by the organizaSTRING
HIGHsdk/python/polar/v2027_01/webhooks.py0sent when a new customer seat is assigned. this event is triggered when a seat is assigned to a customer by the organizaSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a new customer seat is assigned. this event is triggered when a seat is assigned to a customer by the organizaSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a new customer seat is assigned. this event is triggered when a seat is assigned to a customer by the organizaSTRING
HIGHserver/polar/webhook/webhooks.py0sent when a customer seat is claimed. this event is triggered when a customer accepts the seat invitation and claims theSTRING
HIGHsdk/python/polar/v2027_01/webhooks.py0sent when a customer seat is claimed. this event is triggered when a customer accepts the seat invitation and claims theSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a customer seat is claimed. this event is triggered when a customer accepts the seat invitation and claims theSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a customer seat is claimed. this event is triggered when a customer accepts the seat invitation and claims theSTRING
HIGHserver/polar/webhook/webhooks.py0sent when a customer seat is revoked. this event is triggered when access to a seat is revoked, either manually by the oSTRING
HIGHsdk/python/polar/v2027_01/webhooks.py0sent when a customer seat is revoked. this event is triggered when access to a seat is revoked, either manually by the oSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a customer seat is revoked. this event is triggered when access to a seat is revoked, either manually by the oSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a customer seat is revoked. this event is triggered when access to a seat is revoked, either manually by the oSTRING
HIGHserver/polar/webhook/webhooks.py0sent when a new member is created. a member represents an individual within a customer (team). this event is triggered wSTRING
HIGHsdk/python/polar/v2027_01/webhooks.py0sent when a new member is created. a member represents an individual within a customer (team). this event is triggered wSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a new member is created. a member represents an individual within a customer (team). this event is triggered wSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a new member is created. a member represents an individual within a customer (team). this event is triggered wSTRING
HIGHserver/polar/webhook/webhooks.py0sent when a member is updated. this event is triggered when member details are updated, such as their name or role withiSTRING
HIGHsdk/python/polar/v2027_01/webhooks.py0sent when a member is updated. this event is triggered when member details are updated, such as their name or role withiSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a member is updated. this event is triggered when member details are updated, such as their name or role withiSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a member is updated. this event is triggered when member details are updated, such as their name or role withiSTRING
HIGHserver/polar/webhook/webhooks.py0sent when a member is deleted. this event is triggered when a member is removed from a customer. any active seats assignSTRING
HIGHsdk/python/polar/v2027_01/webhooks.py0sent when a member is deleted. this event is triggered when a member is removed from a customer. any active seats assignSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a member is deleted. this event is triggered when a member is removed from a customer. any active seats assignSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a member is deleted. this event is triggered when a member is removed from a customer. any active seats assignSTRING
1974 more matches not shown…
Hyper-Verbose Identifiers6546 hits · 5829 pts
SeverityFileLineSnippetContext
LOW…s/adapters/nextjs/src/customerPortal/customerPortal.ts21function configIsExternalCustomerIdConfig(CODE
LOW…c/checkout/checkout_decodeuri_corruption.repro.test.ts38function simulateServerThenSuccessPageRead(wireUrl: string) {CODE
LOWclients/packages/ui/src/components/ui/chart.tsx325function getPayloadConfigFromPayload(CODE
LOWclients/packages/cli/src/services/update.ts161export function getArchiveExtractionCommand(CODE
LOWclients/apps/app/auth/refresher.ts66function oauthTokenEndpointErrorCode(error: unknown): string | undefined {CODE
LOWclients/apps/app/auth/refresher.ts78function shouldClearSessionAfterTokenRefreshFailure(error: unknown): boolean {CODE
LOWclients/apps/app/providers/NotificationsProvider.tsx24async function registerForPushNotificationsAsync() {CODE
LOWclients/apps/app/providers/OrganizationProvider.tsx31export function PolarOrganizationProvider({ children }: PropsWithChildren) {CODE
LOW…/[organization]/portal/CustomerPortalLayoutWrapper.tsx18export function CustomerPortalLayoutWrapper({CODE
LOWclients/apps/web/src/utils/order.ts41export function isOrderInDunningLifecycle(CODE
LOWclients/apps/web/src/utils/order.ts141export function getChargebackPreventionRefund(CODE
LOWclients/apps/web/src/utils/webhook/signatureNotice.ts5export function shouldShowWebhookSignatureNotice(CODE
LOWclients/apps/web/src/utils/i18n/index.ts8export function parseAcceptLanguageHeader(CODE
LOW⚡clients/apps/web/src/utils/i18n/index.ts39function getLocaleFromAcceptLanguageHeader(CODE
LOW⚡clients/apps/web/src/utils/i18n/index.ts45function getPrimaryLanguageForLocale(locale: string): string {CODE
LOW⚡clients/apps/web/src/utils/i18n/index.ts49export function findMatchingLocaleInAcceptLanguageHeader(CODE
LOW…/components/Metrics/CancellationsDistributionChart.tsx30export default function CancellationsDistributionChart({CODE
LOW…b/src/components/Metrics/CancellationsStackedChart.tsx57export default function CancellationsStackedChart({CODE
LOW…nents/Metrics/dashboards/DashboardDetailClientPage.tsx32export default function DashboardDetailClientPage({CODE
LOW…src/components/Settings/OrganizationDeleteSettings.tsx20export default function OrganizationDeleteSettings({CODE
LOW…src/components/Settings/BackupCodesRegenerateModal.tsx11export default function BackupCodesRegenerateModal({CODE
LOW…eb/src/components/Auth/OrganizationPermissionGuard.tsx11export default async function OrganizationPermissionGuard({CODE
LOWclients/apps/web/src/components/Benefit/utils.tsx109export function isBenefitVisibilityConfigurable(CODE
LOWclients/apps/web/src/hooks/queries/customerPortal.ts8export function useCustomerPortalCustomer(options?: {CODE
LOWserver/polar/config.py54def _validate_email_renderer_binary_path(value: Path) -> Path:CODE
LOWserver/polar/config.py499 def get_customer_portal_url_override(STRING
LOWserver/polar/config.py717 def apply_postgres_url_non_pooling(self) -> "Settings":STRING
LOWserver/polar/config.py812 def is_read_replica_configured(self) -> bool:STRING
LOWserver/polar/config.py877 def stripe_descriptor_suffix_max_length(self) -> int:STRING
LOWserver/polar/config.py889 def get_pydantic_gateway_model(STRING
LOWserver/polar/exception_handlers.py28async def request_validation_exception_handler(CODE
LOWserver/polar/exception_handlers.py48async def polar_redirection_exception_handler(CODE
LOWserver/polar/logfire.py257def _request_attributes_mapper(CODE
LOWserver/polar/redis.py34 async def _disconnect_raise_on_watching(self, conn: Any, error: Exception) -> None:CODE
LOWserver/polar/redis.py55 def _disconnect_raise_on_watching(self, conn: Any, error: Exception) -> None:CODE
LOWserver/polar/operational_errors.py21def _sql_timeout_error_matcher(exc: BaseException) -> bool:CODE
LOWserver/polar/operational_errors.py37def _sql_lock_not_available_error_matcher(exc: BaseException) -> bool:CODE
LOWserver/polar/operational_errors.py51def _sql_deadlock_error_matcher(exc: BaseException) -> bool:CODE
LOW⚡server/polar/operational_errors.py62def _timeout_lock_error_matcher(exc: BaseException) -> bool:CODE
LOW⚡server/polar/operational_errors.py66def _external_event_already_handled_error_matcher(exc: BaseException) -> bool:CODE
LOW⚡server/polar/operational_errors.py73def _tinybird_operational_error_matcher(exc: BaseException) -> bool:CODE
LOW⚡server/polar/operational_errors.py80def _polar_self_client_operational_error_matcher(exc: BaseException) -> bool:CODE
LOW⚡server/polar/operational_errors.py87def _email_sender_operational_error_matcher(exc: BaseException) -> bool:CODE
LOWserver/polar/organization/service.py178def _is_hosted_website_domain(website_domain: str) -> bool:CODE
LOWserver/polar/organization/service.py185def _email_domain_matches_website(email_domain: str, website_domain: str) -> bool:CODE
LOWserver/polar/organization/service.py242def _merge_customer_portal_settings(CODE
LOWserver/polar/organization/service.py544 async def _validate_currency_change(CODE
LOWserver/polar/organization/service.py709 async def reset_onboarding_for_review(CODE
LOWserver/polar/organization/service.py1073 async def _sync_polar_self_customer_owner(CODE
LOWserver/polar/organization/service.py1189 def _enqueue_cancel_pending_payouts(self, organization: Organization) -> None:CODE
LOWserver/polar/organization/service.py1198 def _enqueue_reject_stripe_account(CODE
LOWserver/polar/organization/service.py1225 async def confirm_organization_reviewed(CODE
LOWserver/polar/organization/service.py1359 async def backoffice_submit_and_maybe_activate(CODE
LOWserver/polar/organization/service.py1509 async def handle_ongoing_review_verdict(CODE
LOWserver/polar/organization/service.py1619 async def unsnooze_expired_organizations(CODE
LOWserver/polar/organization/service.py1639 async def offboard_expired_organizations(CODE
LOWserver/polar/organization/service.py1672 async def complete_expired_offboarding(CODE
LOWserver/polar/organization/service.py1714 async def cancel_expired_organizations_subscriptions(CODE
LOWserver/polar/organization/service.py1733 async def set_organization_offboarded(CODE
LOWserver/polar/organization/service.py1752 def _transition_to_offboarded(CODE
6486 more matches not shown…
Docstring Block Structure249 hits · 1245 pts
SeverityFileLineSnippetContext
HIGHserver/polar/member/service.py240 Soft delete a member. Any active seats assigned to this member will be automatically revoked bSTRING
HIGHserver/polar/member/service.py654 Create a new member for a customer. The customer is resolved by either its internal ID (`customer_id`)STRING
HIGHserver/polar/kit/http.py74 Validate that the URL is crawlable (not private/reserved). Args: url: The URL to validate. ReturnSTRING
HIGHserver/polar/tax/tax_id.py515 Validate a tax ID for a given country. Args: number: The tax ID to validate. country: The counSTRING
HIGHserver/polar/tax/tax_id.py543 Convert a tax ID to the format expected by Stripe. Args: value: A tuple containing the tax ID and the STRING
HIGHserver/polar/tax/calculation/__init__.py79Calculate tax for the given parameters. Tries to calculate tax using the configured tax processors in order. IfSTRING
HIGHserver/polar/backoffice/forms.py63Render the form field as HTML. Args: id: The HTML id and name attribute for the field. STRING
HIGHserver/polar/backoffice/components/_description_list.py98Extract the raw attribute value from the data object. Args: item: The data object to extract from. STRING
HIGHserver/polar/backoffice/components/_description_list.py112Get the formatted string value for display. This method can be overridden in subclasses to provide custom formaSTRING
HIGHserver/polar/backoffice/components/_description_list.py146Get the formatted datetime string for display. Args: item: The data object to extract the datetime STRING
HIGHserver/polar/backoffice/components/_datatable.py211Extract the raw attribute value from the model item. Args: item: The model item to extract from. STRING
HIGHserver/polar/backoffice/components/_datatable.py225Get the formatted string value for display. This method can be overridden in subclasses to provide custom formaSTRING
HIGHserver/polar/backoffice/components/_datatable.py260Get the formatted datetime string for display. Args: item: The model item to extract the datetime fSTRING
HIGHserver/polar/product/price_set.py48Create a PriceSet from a product's prices filtered by currency. Args: product: The product containiSTRING
HIGHserver/polar/product/price_set.py65Create a PriceSet from a sequence of prices filtered by currency. Iterates through the provided currencies in oSTRING
HIGHserver/polar/benefit/strategies/base/service.py103 Executes the logic to grant a benefit to a customer. Args: benefit: The Benefit to grant. STRING
HIGHserver/polar/benefit/strategies/base/service.py141 Executes the logic when a subscription is renewed for a new cycle for a granted benefit. Args: STRING
HIGHserver/polar/benefit/strategies/base/service.py173 Executes the logic to revoke a benefit from a customer. Args: benefit: The Benefit to revoSTRING
HIGHserver/polar/benefit/strategies/base/service.py217 Validates the benefit properties before creation. Useful if we need to call external logic to make surSTRING
HIGHsdk/python/polar/v2027_01/services/files.py93 List files. **Scopes**: `files:read` `files:write` Args: organization_id: Filter STRING
HIGHsdk/python/polar/v2027_01/services/files.py404 List files. **Scopes**: `files:read` `files:write` Args: organization_id: Filter STRING
HIGHsdk/python/polar/v2027_01/services/payments.py110 List payments. **Scopes**: `payments:read` Args: organization_id: Filter by organSTRING
HIGHsdk/python/polar/v2027_01/services/payments.py286 List payments. **Scopes**: `payments:read` Args: organization_id: Filter by organSTRING
HIGHsdk/python/polar/v2027_01/services/checkouts.py121 List checkout sessions. **Scopes**: `checkouts:read` `checkouts:write` Args: orgaSTRING
HIGHsdk/python/polar/v2027_01/services/checkouts.py523 List checkout sessions. **Scopes**: `checkouts:read` `checkouts:write` Args: orgaSTRING
HIGHsdk/python/polar/v2027_01/services/meters.py111 List meters. **Scopes**: `meters:read` `meters:write` Args: organization_id: FiltSTRING
HIGHsdk/python/polar/v2027_01/services/meters.py470 List meters. **Scopes**: `meters:read` `meters:write` Args: organization_id: FiltSTRING
HIGHsdk/python/polar/v2027_01/services/disputes.py95 List disputes. **Scopes**: `disputes:read` `disputes:write` Args: organization_idSTRING
HIGHsdk/python/polar/v2027_01/services/disputes.py294 List disputes. **Scopes**: `disputes:read` `disputes:write` Args: organization_idSTRING
HIGHsdk/python/polar/v2027_01/services/license_keys.py109 Get license keys connected to the given organization & filters. **Scopes**: `license_keys:read` `licenSTRING
HIGHsdk/python/polar/v2027_01/services/license_keys.py534 Get license keys connected to the given organization & filters. **Scopes**: `license_keys:read` `licenSTRING
HIGHsdk/python/polar/v2027_01/services/customer_meters.py101 List customer meters. **Scopes**: `customer_meters:read` Args: organization_id: FSTRING
HIGHsdk/python/polar/v2027_01/services/customer_meters.py265 List customer meters. **Scopes**: `customer_meters:read` Args: organization_id: FSTRING
HIGHsdk/python/polar/v2027_01/services/checkout_links.py96 List checkout links. **Scopes**: `checkout_links:read` `checkout_links:write` Args: STRING
HIGHsdk/python/polar/v2027_01/services/checkout_links.py395 List checkout links. **Scopes**: `checkout_links:read` `checkout_links:write` Args: STRING
HIGHsdk/python/polar/v2027_01/services/events.py201 List event names. **Scopes**: `events:read` `events:write` Args: organization_id:STRING
HIGHsdk/python/polar/v2027_01/services/events.py495 List event names. **Scopes**: `events:read` `events:write` Args: organization_id:STRING
HIGHsdk/python/polar/v2027_01/services/refunds.py112 List refunds. **Scopes**: `refunds:read` `refunds:write` Args: id: Filter by refuSTRING
HIGHsdk/python/polar/v2027_01/services/refunds.py287 List refunds. **Scopes**: `refunds:read` `refunds:write` Args: id: Filter by refuSTRING
HIGHsdk/python/polar/v2027_01/services/subscriptions.py164 List subscriptions. **Scopes**: `subscriptions:read` `subscriptions:write` Args: STRING
HIGHsdk/python/polar/v2027_01/services/subscriptions.py698 List subscriptions. **Scopes**: `subscriptions:read` `subscriptions:write` Args: STRING
HIGHsdk/python/polar/v2027_01/services/discounts.py95 List discounts. **Scopes**: `discounts:read` `discounts:write` Args: organizationSTRING
HIGHsdk/python/polar/v2027_01/services/discounts.py385 List discounts. **Scopes**: `discounts:read` `discounts:write` Args: organizationSTRING
HIGHsdk/python/polar/v2027_01/services/products.py128 List products. **Scopes**: `products:read` `products:write` Args: id: Filter by pSTRING
HIGHsdk/python/polar/v2027_01/services/products.py516 List products. **Scopes**: `products:read` `products:write` Args: id: Filter by pSTRING
HIGHsdk/python/polar/v2027_01/services/orders.py150 List orders. **Scopes**: `orders:read` Args: organization_id: Filter by organizatSTRING
HIGHsdk/python/polar/v2027_01/services/orders.py691 List orders. **Scopes**: `orders:read` Args: organization_id: Filter by organizatSTRING
HIGHsdk/python/polar/v2027_01/services/organizations.py92 List organizations. **Scopes**: `organizations:read` `organizations:write` Args: STRING
HIGHsdk/python/polar/v2027_01/services/organizations.py322 List organizations. **Scopes**: `organizations:read` `organizations:write` Args: STRING
HIGHsdk/python/polar/v2027_01/services/benefits.py135 List benefits. **Scopes**: `benefits:read` `benefits:write` Args: organization_idSTRING
HIGHsdk/python/polar/v2027_01/services/benefits.py570 List the downloadable files for a benefit with their download statistics. **Scopes**: `benefits:read` STRING
HIGHsdk/python/polar/v2027_01/services/benefits.py678 List the individual grants for a benefit. It's especially useful to check if a user has been granted aSTRING
HIGHsdk/python/polar/v2027_01/services/benefits.py807 List benefits. **Scopes**: `benefits:read` `benefits:write` Args: organization_idSTRING
HIGHsdk/python/polar/v2027_01/services/benefits.py1243 List the downloadable files for a benefit with their download statistics. **Scopes**: `benefits:read` STRING
HIGHsdk/python/polar/v2027_01/services/benefits.py1352 List the individual grants for a benefit. It's especially useful to check if a user has been granted aSTRING
HIGHsdk/python/polar/v2027_01/services/custom_fields.py107 List custom fields. **Scopes**: `custom_fields:read` `custom_fields:write` Args: STRING
HIGHsdk/python/polar/v2027_01/services/custom_fields.py480 List custom fields. **Scopes**: `custom_fields:read` `custom_fields:write` Args: STRING
HIGHsdk/python/polar/v2027_01/services/webhooks.py87 List webhook endpoints. **Scopes**: `webhooks:read` `webhooks:write` Args: organiSTRING
HIGHsdk/python/polar/v2027_01/services/webhooks.py413 List webhook deliveries. Deliveries are all the attempts to deliver a webhook event to an endpoint. STRING
HIGHsdk/python/polar/v2027_01/services/webhooks.py561 List webhook endpoints. **Scopes**: `webhooks:read` `webhooks:write` Args: organiSTRING
189 more matches not shown…
Decorative Section Separators265 hits · 870 pts
SeverityFileLineSnippetContext
MEDIUMterraform/test/ecs.tf7# =============================================================================COMMENT
MEDIUMterraform/test/ecs.tf9# =============================================================================COMMENT
MEDIUMterraform/test/vercel-services.tf1# =============================================================================COMMENT
MEDIUMterraform/test/vercel-services.tf3# =============================================================================COMMENT
MEDIUMterraform/test/network.tf1# =============================================================================COMMENT
MEDIUMterraform/test/network.tf3# =============================================================================COMMENT
MEDIUMterraform/test/aws.tf201# =============================================================================COMMENT
MEDIUMterraform/test/aws.tf205# =============================================================================COMMENT
MEDIUMterraform/test/aws.tf248# =============================================================================COMMENT
MEDIUMterraform/test/aws.tf250# =============================================================================COMMENT
MEDIUMterraform/test/aws.tf275# =============================================================================COMMENT
MEDIUMterraform/test/aws.tf277# =============================================================================COMMENT
MEDIUMterraform/test/aws.tf337# =============================================================================COMMENT
MEDIUMterraform/test/aws.tf339# =============================================================================COMMENT
MEDIUM⚡terraform/test/render.tf2# =============================================================================COMMENT
MEDIUM⚡terraform/test/render.tf4# =============================================================================COMMENT
MEDIUM⚡terraform/test/render.tf13# =============================================================================COMMENT
MEDIUM⚡terraform/test/render.tf15# =============================================================================COMMENT
MEDIUMterraform/test/render.tf28# =============================================================================COMMENT
MEDIUMterraform/test/render.tf30# =============================================================================COMMENT
MEDIUM⚡terraform/test/render.tf72# =============================================================================COMMENT
MEDIUM⚡terraform/test/render.tf74# =============================================================================COMMENT
MEDIUM⚡terraform/test/render.tf80# =============================================================================COMMENT
MEDIUM⚡terraform/test/render.tf82# =============================================================================COMMENT
MEDIUMterraform/test/render.tf175# =============================================================================COMMENT
MEDIUMterraform/test/render.tf177# =============================================================================COMMENT
MEDIUMterraform/test/render.tf226# =============================================================================COMMENT
MEDIUMterraform/test/render.tf228# =============================================================================COMMENT
MEDIUMterraform/test/vercel.tf1# =============================================================================COMMENT
MEDIUMterraform/test/vercel.tf3# =============================================================================COMMENT
MEDIUMterraform/sandbox/ecs.tf7# =============================================================================COMMENT
MEDIUMterraform/sandbox/ecs.tf9# =============================================================================COMMENT
MEDIUMterraform/sandbox/network.tf1# =============================================================================COMMENT
MEDIUMterraform/sandbox/network.tf3# =============================================================================COMMENT
MEDIUMterraform/sandbox/aws.tf209# =============================================================================COMMENT
MEDIUMterraform/sandbox/aws.tf213# =============================================================================COMMENT
MEDIUMterraform/sandbox/aws.tf268# =============================================================================COMMENT
MEDIUMterraform/sandbox/aws.tf270# =============================================================================COMMENT
MEDIUMterraform/sandbox/aws.tf292# =============================================================================COMMENT
MEDIUMterraform/sandbox/aws.tf294# =============================================================================COMMENT
MEDIUMterraform/sandbox/aws.tf350# =============================================================================COMMENT
MEDIUMterraform/sandbox/aws.tf352# =============================================================================COMMENT
MEDIUMterraform/sandbox/variables.tf1# =============================================================================COMMENT
MEDIUMterraform/sandbox/variables.tf3# =============================================================================COMMENT
MEDIUM⚡terraform/sandbox/render.tf2# =============================================================================COMMENT
MEDIUM⚡terraform/sandbox/render.tf4# =============================================================================COMMENT
MEDIUM⚡terraform/sandbox/render.tf13# =============================================================================COMMENT
MEDIUM⚡terraform/sandbox/render.tf15# ============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf30# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf32# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf47# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf49# =============================================================================COMMENT
MEDIUM⚡terraform/sandbox/render.tf76# =============================================================================COMMENT
MEDIUM⚡terraform/sandbox/render.tf78# =============================================================================COMMENT
MEDIUM⚡terraform/sandbox/render.tf84# =============================================================================COMMENT
MEDIUM⚡terraform/sandbox/render.tf86# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf164# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf166# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf213# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf215# =============================================================================COMMENT
205 more matches not shown…
Unused Imports805 hits · 726 pts
SeverityFileLineSnippetContext
LOWserver/polar/tasks.py1CODE
LOWserver/polar/tasks.py2CODE
LOWserver/polar/tasks.py3CODE
LOWserver/polar/tasks.py4CODE
LOWserver/polar/tasks.py5CODE
LOWserver/polar/tasks.py6CODE
LOWserver/polar/tasks.py7CODE
LOWserver/polar/tasks.py8CODE
LOWserver/polar/tasks.py9CODE
LOWserver/polar/tasks.py10CODE
LOWserver/polar/tasks.py11CODE
LOWserver/polar/tasks.py12CODE
LOWserver/polar/tasks.py13CODE
LOWserver/polar/tasks.py14CODE
LOWserver/polar/tasks.py15CODE
LOWserver/polar/tasks.py16CODE
LOWserver/polar/tasks.py17CODE
LOWserver/polar/tasks.py18CODE
LOWserver/polar/tasks.py19CODE
LOWserver/polar/tasks.py20CODE
LOWserver/polar/tasks.py21CODE
LOWserver/polar/tasks.py22CODE
LOWserver/polar/tasks.py23CODE
LOWserver/polar/tasks.py24CODE
LOWserver/polar/tasks.py25CODE
LOWserver/polar/tasks.py26CODE
LOWserver/polar/tasks.py27CODE
LOWserver/polar/tasks.py28CODE
LOWserver/polar/tasks.py29CODE
LOWserver/polar/tasks.py30CODE
LOWserver/polar/tasks.py31CODE
LOWserver/polar/tasks.py32CODE
LOWserver/polar/tasks.py33CODE
LOWserver/polar/tasks.py34CODE
LOWserver/polar/tasks.py35CODE
LOWserver/polar/tasks.py36CODE
LOWserver/polar/tasks.py37CODE
LOWserver/polar/tasks.py38CODE
LOWserver/polar/tasks.py39CODE
LOWserver/polar/tasks.py40CODE
LOWserver/polar/tasks.py41CODE
LOWserver/polar/tasks.py42CODE
LOWserver/polar/tasks.py43CODE
LOWserver/polar/tasks.py44CODE
LOWserver/polar/tasks.py45CODE
LOWserver/polar/tasks.py46CODE
LOWserver/polar/tasks.py47CODE
LOWserver/polar/tasks.py48CODE
LOWserver/polar/tasks.py49CODE
LOWserver/polar/openapi.py14CODE
LOWserver/polar/logfire.py24CODE
LOWserver/polar/logfire.py25CODE
LOWserver/polar/logfire.py25CODE
LOWserver/polar/logfire.py26CODE
LOWserver/polar/logfire.py27CODE
LOWserver/polar/__init__.py5CODE
LOWserver/polar/postgres.py7CODE
LOWserver/polar/app.py8CODE
LOWserver/polar/organization/service.py49CODE
LOWserver/polar/event_type/__init__.py1CODE
745 more matches not shown…
Self-Referential Comments153 hits · 501 pts
SeverityFileLineSnippetContext
MEDIUMserver/polar/transaction/service/dispute.py106 # Create the dispute, i.e. the transaction withdrawing the amountCOMMENT
MEDIUM…rver/polar/customer_portal/endpoints/oauth_accounts.py224 # Create a session only after the OAuth provider has confirmed the code.COMMENT
MEDIUM…ver/polar/backoffice/organizations_v2/orders_import.py340 # Create a grant manually to force propertiesCOMMENT
MEDIUMserver/polar/backoffice/organizations_v2/analytics.py171 # Create a copy to avoid mutating the original listCOMMENT
MEDIUMserver/polar/backoffice/organizations_v2/endpoints.py4711 # Create the creditCOMMENT
MEDIUMserver/polar/payout/service.py765 # Create a new payout attemptCOMMENT
MEDIUM⚡server/tests/organization/test_service.py2191 # Create a review recordCOMMENT
MEDIUMserver/tests/organization/test_endpoints.py1312 # Create a customer and order for this organizationCOMMENT
MEDIUMserver/tests/organization/test_endpoints.py1345 # Create a customer and active subscription for this organizationCOMMENT
MEDIUMserver/tests/order/test_service.py3656 # Create a pending order with tax calculation processor IDCOMMENT
MEDIUMserver/tests/order/test_service.py3671 # Create a paymentCOMMENT
MEDIUMserver/tests/order/test_service.py3706 # Create a customer with a billing address so that _calculate_taxCOMMENT
MEDIUMserver/tests/order/test_service.py4654 # Create a failed payment with a non-recoverable decline reasonCOMMENT
MEDIUMserver/tests/order/test_service.py6749 # Create a subscriptionCOMMENT
MEDIUMserver/tests/transaction/service/test_transaction.py146 # Create an old balance transaction (8 days ago - should be available)COMMENT
MEDIUMserver/tests/transaction/service/test_transaction.py158 # Create a recent balance transaction (2 days ago - should NOT be available)COMMENT
MEDIUMserver/tests/transaction/service/test_transaction.py169 # Create a payout transaction (2 days ago - should ALWAYS be available)COMMENT
MEDIUMserver/tests/transaction/service/test_transaction.py180 # Create a payout fee (2 days ago - should ALWAYS be available)COMMENT
MEDIUMserver/tests/transaction/service/test_refund.py479 # Create a charge and orderCOMMENT
MEDIUMserver/tests/transaction/service/test_refund.py491 # Create the payment transactionCOMMENT
MEDIUMserver/tests/transaction/service/test_refund.py771 # Create a charge and orderCOMMENT
MEDIUMserver/tests/transaction/service/test_refund.py784 # Create the payment transactionCOMMENT
MEDIUM⚡server/tests/merchant_migration/test_stripe_adapter.py180 # Creating a migration needs both the id and the country; one read servesCOMMENT
MEDIUMserver/tests/customer_email_update/test_service.py96 # Create an existing pending verificationCOMMENT
MEDIUM⚡server/tests/payment/test_service.py24 # Create a checkoutCOMMENT
MEDIUM⚡server/tests/payment/test_service.py27 # Create a charge with checkout_id in metadataCOMMENT
MEDIUM⚡server/tests/payment/test_service.py67 # Create an orderCOMMENT
MEDIUM⚡server/tests/payment/test_service.py74 # Create a charge with invoiceCOMMENT
MEDIUM⚡server/tests/payment/test_service.py108 # Create a checkoutCOMMENT
MEDIUM⚡server/tests/payment/test_service.py114 # Create an order from the checkoutCOMMENT
MEDIUM⚡server/tests/payment/test_service.py122 # Create a charge with checkout_id in metadataCOMMENT
MEDIUM⚡server/tests/payment/test_service.py310 # Create a checkoutCOMMENT
MEDIUM⚡server/tests/payment/test_service.py313 # Create a payment intent with last_payment_errorCOMMENT
MEDIUM⚡server/tests/payment/test_service.py359 # Create an orderCOMMENT
MEDIUM⚡server/tests/payment/test_service.py366 # Create a payment intent with last_payment_errorCOMMENT
MEDIUMserver/tests/payment/test_service.py161 # Create a charge with wallet_id in metadataCOMMENT
MEDIUMserver/tests/payment/test_service.py200 # Create a checkoutCOMMENT
MEDIUMserver/tests/payment/test_service.py206 # Create a charge with checkout_id in metadataCOMMENT
MEDIUMserver/tests/payment/test_service.py412 # Create an orderCOMMENT
MEDIUMserver/tests/payment/test_service.py491 # Create an orderCOMMENT
MEDIUMserver/tests/payment/test_service.py498 # Create a payment intent with last_payment_errorCOMMENT
MEDIUMserver/tests/member/test_service.py142 # Create a memberCOMMENT
MEDIUMserver/tests/member/test_service.py542 # Create the first member (owner)COMMENT
MEDIUMserver/tests/member/test_service.py674 # Create the first member (owner)COMMENT
MEDIUM⚡server/tests/member/test_endpoints.py200 # Create a customer for a different organization that the user doesn't have access toCOMMENT
MEDIUM⚡server/tests/member/test_endpoints.py209 # Create a memberCOMMENT
MEDIUMserver/tests/member/test_endpoints.py156 # Create a customerCOMMENT
MEDIUMserver/tests/member/test_endpoints.py1292 # Create a customer and memberCOMMENT
MEDIUMserver/tests/member/test_endpoints.py1341 # Create a member for a different organizationCOMMENT
MEDIUMserver/tests/customer_portal/endpoints/test_customer.py161 # Create a payment method with no subscriptionsCOMMENT
MEDIUMserver/tests/customer_portal/endpoints/test_customer.py187 # Create an active subscription using the first payment methodCOMMENT
MEDIUM⚡server/tests/customer_portal/endpoints/test_customer.py219 # Create a payment methodCOMMENT
MEDIUM⚡server/tests/customer_portal/endpoints/test_customer.py222 # Create an active subscription using this payment methodCOMMENT
MEDIUM⚡server/tests/customer_portal/endpoints/test_customer.py250 # Create a payment methodCOMMENT
MEDIUM⚡server/tests/customer_portal/endpoints/test_customer.py253 # Create a canceled subscription using this payment methodCOMMENT
MEDIUM⚡server/tests/customer_portal/endpoints/test_customer.py282 # Create a payment methodCOMMENT
MEDIUM⚡server/tests/customer_portal/endpoints/test_customer.py285 # Create a subscription set to cancel at period end using this payment methodCOMMENT
MEDIUMserver/tests/customer_portal/endpoints/test_member.py196 # Create a member firstCOMMENT
MEDIUMserver/tests/customer_portal/endpoints/test_member.py369 # Create a regular memberCOMMENT
MEDIUMserver/tests/customer_portal/endpoints/test_member.py458 # Create a billing manager to promote to ownerCOMMENT
93 more matches not shown…
AI Structural Patterns324 hits · 316 pts
SeverityFileLineSnippetContext
LOWserver/polar/webhook/endpoints.py232CODE
LOWserver/polar/event_type/service.py42CODE
LOWserver/polar/event_type/endpoints.py26CODE
LOWserver/polar/order/service.py376CODE
LOWserver/polar/order/endpoints.py100CODE
LOWserver/polar/order/endpoints.py179CODE
LOWserver/polar/metrics/endpoints.py59CODE
LOWserver/polar/metrics/endpoints.py154CODE
LOWserver/polar/checkout_link/endpoints.py185CODE
LOWserver/polar/merchant_migration/precheck.py1010CODE
LOWserver/polar/merchant_migration/endpoints.py474CODE
LOWserver/polar/auth/service.py66CODE
LOWserver/polar/auth/oauth2/router.py94CODE
LOWserver/polar/auth/sso/endpoints.py191CODE
LOWserver/polar/payment/service.py37CODE
LOWserver/polar/payment/endpoints.py32CODE
LOWserver/polar/customer_portal/endpoints/benefit_grant.py56CODE
LOWserver/polar/customer_portal/service/benefit_grant.py45CODE
LOWserver/polar/kit/html.py22CODE
LOWserver/polar/kit/csv.py29CODE
LOWserver/polar/kit/db/postgres.py47CODE
LOWserver/polar/kit/db/postgres.py83CODE
LOW…r/polar/backoffice/organizations_v2/views/list_view.py463CODE
LOW…ce/organizations_v2/views/sections/overview_section.py48CODE
LOWserver/polar/backoffice/support_cases/queries.py54CODE
LOWserver/polar/product/service.py95CODE
LOWserver/polar/product/endpoints.py61CODE
LOWserver/polar/product/endpoints.py124CODE
LOWserver/polar/checkout/service.py285CODE
LOWserver/polar/subscription/service.py567CODE
LOWserver/polar/subscription/endpoints.py76CODE
LOWserver/polar/subscription/endpoints.py166CODE
LOWserver/polar/email_update/endpoints.py63CODE
LOWserver/polar/worker/_runner.py184CODE
LOWserver/polar/meter/endpoints.py180CODE
LOWserver/polar/event/tinybird_repository.py106CODE
LOWserver/polar/event/tinybird_repository.py222CODE
LOWserver/polar/event/tinybird_repository.py267CODE
LOWserver/polar/event/tinybird_repository.py393CODE
LOWserver/polar/event/endpoints.py83CODE
LOWserver/polar/event/endpoints.py232CODE
LOWserver/polar/event/endpoints.py288CODE
LOWserver/polar/event/endpoints.py340CODE
LOWserver/polar/event/endpoints.py397CODE
LOWserver/polar/refund/service.py123CODE
LOWserver/polar/refund/endpoints.py27CODE
LOWserver/polar/benefit/service.py36CODE
LOWserver/polar/benefit/grant/service.py92CODE
LOWserver/polar/benefit/grant/endpoints.py82CODE
LOWserver/tests/metrics/test_tinybird_metrics.py1089CODE
LOWserver/tests/transaction/conftest.py30CODE
LOWserver/tests/merchant_migration/test_stripe_adapter.py274CODE
LOWserver/tests/merchant_migration/test_stripe_adapter.py352CODE
LOWserver/tests/merchant_migration/test_stripe_adapter.py415CODE
LOWserver/tests/merchant_migration/test_stripe_adapter.py1071CODE
LOWserver/tests/merchant_migration/test_stripe_adapter.py1102CODE
LOWserver/tests/merchant_migration/test_precheck.py137CODE
LOWserver/tests/merchant_migration/_helpers.py144CODE
LOWserver/tests/merchant_migration/_helpers.py177CODE
LOWserver/tests/dispute/test_service.py1628CODE
264 more matches not shown…
Empty Error Handlers58 hits · 290 pts
SeverityFileLineSnippetContext
HIGHserver/polar/middlewares.py270except ValueError:CODE
HIGHserver/polar/webhook/schemas.py52except ValueError:CODE
HIGHserver/polar/order/tasks.py113except NoPendingBillingEntries:CODE
HIGHserver/polar/eventstream/endpoints.py44except RuntimeError:CODE
HIGHserver/polar/oauth2/authorization_server.py498except AttributeError:CODE
HIGHserver/polar/oauth2/authorization_server.py512except AttributeError:CODE
HIGHserver/polar/customer_portal/service/customer.py284except IncompatibleTaxIDFormat:CODE
HIGHserver/polar/kit/http.py234except KeyError:CODE
HIGHserver/polar/tax/calculation/stripe.py131except IncompatibleTaxIDFormat:CODE
HIGHserver/polar/models/customer_seat.py144except InvalidRequestError:CODE
HIGHserver/polar/backoffice/users/endpoints.py348except stripe_lib.StripeError:CODE
HIGHserver/polar/payment_method/service.py358except stripe_lib.InvalidRequestError:CODE
HIGHserver/polar/observability/task_logging.py75except TypeError:CODE
HIGHserver/polar/dispute/service.py333except DisputeTransactionAlreadyExistsError:CODE
HIGHserver/polar/checkout/service.py722except TaxCalculationLogicalError:CODE
HIGHserver/polar/checkout/service.py1033except TaxCalculationLogicalError:CODE
HIGHserver/polar/checkout/service.py1054except TaxCalculationLogicalError:CODE
HIGHserver/polar/checkout/service.py900except PolarRequestValidationError:CODE
HIGHserver/polar/checkout/service.py871except (CODE
HIGHserver/polar/checkout/service.py940except EmailNotValidError:CODE
HIGHserver/polar/checkout/service.py965except PolarRequestValidationError:CODE
HIGHserver/polar/checkout/service.py3037except IncompatibleTaxIDFormat:CODE
HIGHserver/polar/checkout/service.py3053except IncompatibleTaxIDFormat:CODE
HIGHserver/polar/checkout/service.py993except PolarRequestValidationError:CODE
HIGHserver/polar/integrations/polar/client.py146except ResourceNotFound:CODE
HIGHserver/polar/integrations/tinybird/client.py199except ValueError:CODE
HIGHserver/polar/integrations/stripe/tasks.py166except UnhandledPaymentIntent:CODE
HIGHserver/polar/integrations/stripe/tasks.py196except payment.OutdatedCheckoutIntent:CODE
HIGHserver/polar/worker/_health.py193except asyncio.CancelledError:CODE
HIGHserver/polar/refund/service.py491except RefundTransactionAlreadyExistsError:CODE
HIGHserver/polar/refund/service.py394except RefundTransactionDoesNotExistError:CODE
HIGHserver/polar/refund/service.py528except AlreadyRevertedError:CODE
HIGHserver/polar/payout/tasks.py94except PayoutAccountInsufficientBalance:CODE
HIGHserver/polar/payout/tasks.py98except PayoutAlreadyTriggered:CODE
HIGHserver/polar/benefit/grant/service.py665except BenefitActionRequiredError:CODE
HIGHserver/polar/benefit/grant/service.py305except BenefitActionRequiredError:CODE
HIGHserver/scripts/tinybird_test_workspace.py23except httpx.RequestError:CODE
HIGHserver/scripts/tinybird_test_workspace.py125except httpx.RequestError:CODE
HIGHserver/scripts/tax_filing_imports.py74except OSError:CODE
HIGHdev/cli/_analytics_send.py31except Exception:CODE
HIGHdev/cli/_analytics_send.py74except Exception:CODE
HIGHdev/cli/_analytics_send.py48except Exception:CODE
HIGHdev/cli/cli.py158except Exception:CODE
HIGHdev/cli/cli.py387except Exception:CODE
HIGHdev/cli/cli.py406except Exception:CODE
HIGHdev/cli/analytics.py131except Exception:CODE
HIGHdev/cli/up_steps/02_setup_node.py107except ValueError:CODE
HIGHdev/cli/up_steps/05_wait_for_services.py68except ValueError:CODE
HIGHdev/cli/commands/snap.py563except OSError:CODE
HIGHdev/cli/commands/snap.py237except Exception:CODE
HIGHdev/cli/commands/snap.py260except Exception:CODE
HIGHdev/cli/commands/snap.py434except Exception:CODE
HIGHdev/cli/commands/snap.py156except ProcessLookupError:CODE
HIGHdev/cli/commands/snap.py761except ValueError:CODE
HIGHdev/cli/commands/snap.py1332except (ProcessLookupError, PermissionError):CODE
HIGHdev/cli/commands/killports.py56except ProcessLookupError:CODE
HIGHdev/cli/commands/killports.py65except ProcessLookupError:CODE
HIGHdev/cli/commands/status.py46except (ValueError, OSError):CODE
Deep Nesting282 hits · 272 pts
SeverityFileLineSnippetContext
LOWserver/polar/middlewares.py26CODE
LOWserver/polar/organization/service.py2313CODE
LOWserver/polar/organization/resolver.py24CODE
LOWserver/polar/webhook/service.py261CODE
LOWserver/polar/event_type/service.py42CODE
LOWserver/polar/order/service.py1797CODE
LOWserver/polar/order/service.py2007CODE
LOWserver/polar/order/repository.py468CODE
LOWserver/polar/metrics/service.py59CODE
LOWserver/polar/metrics/service.py81CODE
LOWserver/polar/metrics/service.py553CODE
LOWserver/polar/metrics/queries_tinybird.py55CODE
LOWserver/polar/metrics/queries_tinybird.py117CODE
LOWserver/polar/transaction/service/dispute.py61CODE
LOWserver/polar/transaction/service/refund.py61CODE
LOWserver/polar/transaction/service/refund.py178CODE
LOWserver/polar/eventstream/endpoints.py26CODE
LOWserver/polar/eventstream/endpoints.py56CODE
LOWserver/polar/custom_field/service.py42CODE
LOWserver/polar/checkout_link/service.py51CODE
LOWserver/polar/merchant_migration/importer.py982CODE
LOWserver/polar/merchant_migration/precheck.py1671CODE
LOWserver/polar/merchant_migration/precheck.py1851CODE
LOWserver/polar/merchant_migration/precheck.py319CODE
LOWserver/polar/merchant_migration/precheck.py1491CODE
LOWserver/polar/merchant_migration/repository.py978CODE
LOWserver/polar/auth/middlewares.py135CODE
LOWserver/polar/member/service.py379CODE
LOWserver/polar/organization_access_token/service.py46CODE
LOW…rver/polar/customer_portal/endpoints/oauth_accounts.py116CODE
LOWserver/polar/customer_portal/service/subscription.py95CODE
LOWserver/polar/customer_portal/service/order.py66CODE
LOWserver/polar/customer_portal/service/benefit_grant.py45CODE
LOWserver/polar/customer_portal/service/benefit_grant.py152CODE
LOWserver/polar/kit/schemas.py30CODE
LOWserver/polar/kit/schemas.py52CODE
LOWserver/polar/kit/versioning.py351CODE
LOWserver/polar/kit/pagination.py151CODE
LOWserver/polar/kit/pagination.py197CODE
LOWserver/polar/tax/repository.py33CODE
LOWserver/polar/user/service.py311CODE
LOWserver/polar/models/subscription_product_price.py47CODE
LOWserver/polar/models/order_item.py90CODE
LOWserver/polar/models/refund.py111CODE
LOWserver/polar/backoffice/forms.py608CODE
LOWserver/polar/backoffice/customers/endpoints.py156CODE
LOWserver/polar/backoffice/customers/endpoints.py224CODE
LOWserver/polar/backoffice/customers/endpoints.py669CODE
LOWserver/polar/backoffice/customers/endpoints.py734CODE
LOWserver/polar/backoffice/customers/endpoints.py770CODE
LOWserver/polar/backoffice/customers/endpoints.py903CODE
LOWserver/polar/backoffice/customers/endpoints.py958CODE
LOWserver/polar/backoffice/customers/endpoints.py1010CODE
LOWserver/polar/backoffice/customers/endpoints.py1078CODE
LOWserver/polar/backoffice/customers/endpoints.py1148CODE
LOWserver/polar/backoffice/tasks/forms.py40CODE
LOWserver/polar/backoffice/tasks/forms.py70CODE
LOWserver/polar/backoffice/tasks/endpoints.py21CODE
LOWserver/polar/backoffice/tasks/endpoints.py62CODE
LOWserver/polar/backoffice/products/endpoints.py34CODE
222 more matches not shown…
Modern Structural Boilerplate173 hits · 174 pts
SeverityFileLineSnippetContext
LOWserver/polar/tasks.py51__all__ = [CODE
LOWserver/polar/openapi.py134__all__ = [CODE
LOWserver/polar/logfire.py288__all__ = [CODE
LOWserver/polar/redis.py116__all__ = [CODE
LOWserver/polar/routing.py31__all__ = ["APIRouter"]CODE
LOWserver/polar/postgres.py93__all__ = [CODE
LOWserver/polar/rate_limit.py344__all__ = [CODE
LOWserver/polar/sentry.py160def set_sentry_user(auth_subject: AuthSubject[Subject]) -> None:CODE
LOWserver/polar/event_type/__init__.py3__all__ = ["EventTypeRepository"]CODE
LOWserver/polar/metrics/metrics.py1006__all__ = [CODE
LOWserver/polar/metrics/cache.py89async def set_cached_metrics(redis: Redis, key: str, response: MetricsResponse) -> None:CODE
LOWserver/polar/transaction/fees/stripe/__init__.py75__all__ = ["get_reverse_stripe_payout_fees", "get_stripe_account_fee", "round_stripe"]CODE
LOWserver/polar/account_credit/__init__.py3__all__ = ["account_credit_service"]CODE
LOWserver/polar/merchant_migration/pan_transfer.py437def _settle(step: PanTransferStep, actor: PanStepActor) -> None:CODE
LOWserver/polar/merchant_migration/adapters/__init__.py4__all__ = ["PaginatedSourceAdapter", "SourceAdapter", "StripeAdapter"]CODE
LOWserver/polar/auth/models.py165__all__ = [CODE
LOWserver/polar/auth/exception_handlers.py29__all__ = [CODE
LOWserver/polar/auth/routing.py88__all__ = ["DocumentedAuthSubjectAPIRoute"]CODE
LOWserver/polar/member/__init__.py3__all__ = ["Member", "MemberCreate", "MemberOwnerCreate"]CODE
LOWserver/polar/oauth2/exception_handlers.py18__all__ = ["OAuth2Error", "oauth2_error_exception_handler"]CODE
LOWserver/polar/oauth2/userinfo.py29__all__ = ["UserInfo", "generate_user_info"]CODE
LOWserver/polar/oauth2/exceptions.py45__all__ = ["InsufficientScopeError", "InvalidTokenError"]CODE
LOWserver/polar/oauth2/grants/__init__.py29__all__ = ["AuthorizationCodeGrant", "CodeChallenge", "register_grants"]CODE
LOWserver/polar/kit/cors.py78__all__ = ["CORSConfig", "CORSMatcherMiddleware", "Scope"]CODE
LOWserver/polar/kit/routing.py219__all__ = [CODE
LOWserver/polar/kit/email.py87__all__ = [CODE
LOWserver/polar/kit/repository/__init__.py13__all__ = [CODE
LOWserver/polar/kit/extensions/sqlalchemy/__init__.py4__all__ = ["IntEnum", "StringEnum", "sql", "storage"]CODE
LOWserver/polar/kit/extensions/sqlalchemy/sql.py8__all__ = [CODE
LOWserver/polar/kit/db/postgres.py129__all__ = [CODE
LOWserver/polar/kit/db/models/__init__.py3__all__ = ["IDModel", "Model", "RateLimitGroupMixin", "RecordModel", "TimestampedModel"]CODE
LOWserver/polar/kit/db/models/base.py54 def set_modified_at(self) -> None:CODE
LOWserver/polar/kit/db/models/base.py57 def set_deleted_at(self) -> None:CODE
LOWserver/polar/tax/tax_id.py594__all__ = [CODE
LOWserver/polar/tax/calculation/__init__.py231__all__ = [CODE
LOWserver/polar/models/user.py160 async def set_tokens(self, *, access_token: str, refresh_token: str | None) -> None:CODE
LOWserver/polar/models/product_price.py548def set_identity(instance: ProductPrice, *arg: Any, **kw: Any) -> None:CODE
LOWserver/polar/models/subscription.py616 def update_net_amount_from(self, charge: "Order | Checkout") -> None:CODE
LOWserver/polar/models/subscription.py635 def update_meters(self, prices: Sequence["SubscriptionProductPrice"]) -> None:CODE
LOWserver/polar/models/organization.py843 def set_status(self, status: OrganizationStatus) -> None:CODE
LOWserver/polar/models/order.py371 def update_refunds(self, refunded_amount: int, refunded_tax_amount: int) -> None:CODE
LOWserver/polar/models/__init__.py138__all__ = [CODE
LOWserver/polar/models/oauth2_client.py152 async def set_client_secret(self, client_secret: str) -> None:CODE
LOWserver/polar/models/oauth2_client.py174 def set_client_secret_sync(self, client_secret: str) -> None:CODE
LOW⚡server/polar/models/benefit_grant.py209 def set_granted(self) -> None:CODE
LOW⚡server/polar/models/benefit_grant.py214 def set_revoked(self) -> None:CODE
LOW⚡server/polar/models/benefit_grant.py219 def set_grant_failed(self, error: Exception) -> None:CODE
LOWserver/polar/models/product.py323def _set_new_product_deletable(target: Product, args: Any, kwargs: Any) -> None:CODE
LOWserver/polar/backoffice/__init__.py80__all__ = ["app"]CODE
LOWserver/polar/backoffice/routing.py5__all__ = ["BackofficeRouter"]CODE
LOWserver/polar/backoffice/toast.py48__all__ = ["add_toast", "render_toasts"]STRING
LOWserver/polar/backoffice/customers/__init__.py3__all__ = ["router"]CODE
LOWserver/polar/backoffice/organizations_v2/endpoints.py5126__all__ = ["router"]CODE
LOW…r/polar/backoffice/organizations_v2/views/list_view.py939__all__ = ["MIN_SEARCH_LENGTH", "OrganizationListView"]CODE
LOW…polar/backoffice/organizations_v2/views/detail_view.py955__all__ = ["OrganizationDetailView"]CODE
LOW…ce/organizations_v2/views/sections/overview_section.py895__all__ = ["OverviewSection"]CODE
LOW…office/organizations_v2/views/sections/risk_signals.py216__all__ = [CODE
LOW…ice/organizations_v2/views/sections/reviews_section.py222__all__ = ["ReviewsSection"]CODE
LOW…ce/organizations_v2/views/sections/settings_section.py507__all__ = ["SettingsSection"]CODE
LOW…rganizations_v2/views/sections/support_case_section.py773__all__ = ["SupportCaseSection"]CODE
113 more matches not shown…
Excessive Try-Catch Wrapping144 hits · 166 pts
SeverityFileLineSnippetContext
LOWserver/polar/middlewares.py299 except Exception as exc:CODE
LOWserver/polar/organization/service.py839 except Exception as e:CODE
LOWserver/polar/organization/schemas.py380 except Exception:CODE
LOWserver/polar/webhook/tasks.py362 except Exception as e:CODE
LOWserver/polar/external_event/service.py73 except Exception:CODE
LOWserver/polar/order/service.py372 except Exception:CODE
LOWserver/polar/order/service.py1294 except Exception:CODE
LOWserver/polar/order/service.py2209 except Exception as exc:CODE
LOWserver/polar/order/service.py2421 except Exception:CODE
LOWserver/polar/order/service.py2864 except Exception as e:CODE
LOWserver/polar/order/service.py3135 except Exception as e:CODE
LOWserver/polar/transaction/service/dispute.py279 except Exception as e:CODE
LOWserver/polar/transaction/service/refund.py172 except Exception as e:CODE
LOWserver/polar/transaction/service/refund.py268 except Exception as e:CODE
LOWserver/polar/merchant_migration/service.py833 except Exception as error:CODE
LOWserver/polar/merchant_migration/cutover.py331 except Exception as e:CODE
LOWserver/polar/merchant_migration/cutover.py493 except Exception:CODE
LOWserver/polar/merchant_migration/cutover.py526 except Exception:CODE
LOWserver/polar/auth/routing.py26 except Exception:CODE
LOWserver/polar/kit/currency.py148 except Exception:CODE
LOW…ver/polar/backoffice/organizations_v2/orders_import.py407 except Exception:CODE
LOWserver/polar/backoffice/organizations_v2/endpoints.py485 except Exception:CODE
LOWserver/polar/backoffice/organizations_v2/endpoints.py3044 except Exception as e:CODE
LOWserver/polar/backoffice/organizations_v2/endpoints.py4308 except Exception as e:CODE
LOWserver/polar/backoffice/organizations_v2/endpoints.py4347 except Exception as e:CODE
LOW…ice/organizations_v2/views/sections/reviews_section.py138 except Exception:CODE
LOWserver/polar/backoffice/email_logs/endpoints.py166 except Exception:CODE
LOWserver/polar/backoffice/benefits/endpoints.py189 except Exception:CODE
LOWserver/polar/backoffice/orders/endpoints.py280 except Exception:CODE
LOWserver/polar/backoffice/orders/endpoints.py289 except Exception:CODE
LOWserver/polar/backoffice/orders/endpoints.py847 except Exception as e:CODE
LOWserver/polar/backoffice/orders/endpoints.py1016 except Exception as e:CODE
LOWserver/polar/backoffice/orders/endpoints.py1074 except Exception as e:CODE
LOWserver/polar/backoffice/orders/endpoints.py1138 except Exception as e:CODE
LOWserver/polar/observability/s3_span_exporter.py90 except Exception:CODE
LOWserver/polar/observability/memory_profile.py148 except Exception as e:CODE
LOWserver/polar/observability/remote_write.py196 except Exception as e:CODE
LOWserver/polar/observability/remote_write.py243 except Exception as e:CODE
LOW⚡server/polar/observability/slo.py109 except Exception:CODE
LOWserver/polar/observability/slo_report/tasks.py85 except Exception as e:CODE
LOWserver/polar/checkout/service.py1534 except Exception as e:CODE
LOWserver/polar/checkout/service.py1595 except Exception as e:CODE
LOWserver/polar/checkout/service.py1746 except Exception as e:CODE
LOWserver/polar/subscription/scheduler.py46 except Exception as e:CODE
LOWserver/polar/integrations/plain/service.py185 except Exception:STRING
LOWserver/polar/integrations/github/service/user.py32 except Exception as e:CODE
LOW…olar/integrations/github_repository_benefit/service.py273 except Exception as e:CODE
LOWserver/polar/integrations/tinybird/service.py832 except Exception as e:CODE
LOWserver/polar/integrations/tinybird/service.py1492 except Exception as e:CODE
LOWserver/polar/integrations/tinybird/client.py85 except Exception:CODE
LOWserver/polar/integrations/resend/endpoints.py47 except Exception:CODE
LOWserver/polar/receipt/render.py40 except Exception:CODE
MEDIUMserver/polar/receipt/render.py37def main() -> int:CODE
LOWserver/polar/support_case/pdf.py34 except Exception:CODE
LOWserver/polar/support_case/pdf.py43 except Exception:CODE
LOWserver/polar/organization_review/analyzer.py737 except Exception as e:CODE
LOWserver/polar/organization_review/policy.py57 except Exception:CODE
LOWserver/polar/organization_review/policy.py113 except Exception as e:CODE
LOWserver/polar/organization_review/agent.py112 except Exception as e:CODE
LOWserver/polar/organization_review/agent.py259 except Exception as e:CODE
84 more matches not shown…
Fake / Example Data164 hits · 160 pts
SeverityFileLineSnippetContext
LOWclients/adapters/nextjs/src/checkout/checkout.test.ts236 street: '123 Main St',CODE
LOWclients/adapters/nextjs/src/checkout/checkout.test.ts247 requestUrl.searchParams.set('customer_name', 'John Doe')CODE
LOWclients/adapters/nextjs/src/checkout/checkout.test.ts266 customer_name: 'John Doe',CODE
LOWclients/adapters/nextjs/src/checkout/checkout.test.ts267 customer_billing_address: { street: '123 Main St', city: 'NYC' },CODE
LOWclients/adapters/better-auth/example/src/app/page.tsx35 email: 'test@test.com',CODE
LOW…s/adapters/better-auth/src/__tests__/principal.test.ts24 email: 'user@example.com',CODE
LOW…s/adapters/better-auth/src/__tests__/principal.test.ts347 email: 'user@example.com',CODE
LOW…er-auth/src/__tests__/organization/integration.test.ts503 email: 'admin@example.com',CODE
LOW…er-auth/src/__tests__/organization/integration.test.ts526 email: 'admin@example.com',CODE
LOW…ers/better-auth/src/__tests__/plugins/checkout.test.ts261 email: 'user@example.com',CODE
LOW…ters/adapter-utils/src/entitlement/entitlement.test.ts32 email: 'test@test.com',CODE
LOWclients/apps/orbit/src/app/components/input/page.tsx79 name: 'placeholder',CODE
LOWclients/apps/orbit/src/app/components/textarea/page.tsx75 name: 'placeholder',CODE
LOWclients/apps/app/targets/widget/widgets.swift16 return SimpleEntry(date: Date(), configuration: ConfigurationAppIntent(), metricValue: 425, metricValueDouble: nCODE
LOWclients/apps/app/targets/widget/widgets.swift872 SimpleEntry(date: .now, configuration: config, metricValue: 425, metricValueDouble: nil, organizationName: "Acme IncCODE
LOW…rc/components/Settings/OrganizationProfileSettings.tsx301 placeholder="Acme Inc"CODE
LOWclients/apps/web/src/components/Landing/Pipeline.tsx128 name="John Doe"CODE
LOWserver/polar/member/schemas.py25_name_example = "Jane Doe"CODE
LOWserver/polar/backoffice/organizations_v2/endpoints.py1555 "placeholder": "Why are you denying this organization?",CODE
LOWserver/polar/backoffice/organizations_v2/endpoints.py1723 "placeholder": reason_placeholder,CODE
LOWserver/polar/backoffice/organizations_v2/endpoints.py2265 "placeholder": reason_placeholder,CODE
LOW…r/polar/backoffice/organizations_v2/views/list_view.py530 "placeholder": ("Search organizations by name or slug..."),CODE
LOWserver/polar/customer/schemas/customer.py58_name_example = "John Doe"CODE
LOWserver/emails/src/preview.ts85 billing_name: 'John Doe',CODE
LOWserver/emails/src/preview.ts87 line1: '123 Main Street',CODE
LOWserver/emails/src/emails/webhook_endpoint_disabled.tsx60 email: 'admin@example.com',CODE
LOWserver/emails/src/emails/notification_new_trial.tsx43 subscriber_name: 'John Doe',CODE
LOWserver/emails/src/emails/notification_new_sale.tsx60 billing_address_line1: '123 Main St',CODE
LOW…/src/emails/notification_subscription_cancellation.tsx76 subscriber_name: 'John Doe',CODE
LOW…er/emails/src/emails/notification_new_subscription.tsx40 subscriber_name: 'John Doe',CODE
LOWserver/emails/src/emails/organization_offboarded.tsx42 email: 'admin@example.com',CODE
LOWserver/tests/organization/test_service.py1443 reset_by="admin@example.com",CODE
LOWserver/tests/organization/test_service.py1458 assert "admin@example.com" in result.internal_notesCODE
LOWserver/tests/organization/test_service.py1487 reset_by="admin@example.com",CODE
LOWserver/tests/organization/test_embed_hosts.py124 "user@example.com",CODE
LOW⚡server/tests/organization/test_schemas.py85 "Acme Inc",CODE
LOWserver/tests/order/test_service.py3111 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3306 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3329 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3351 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3387 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3409 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3432 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3456 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3478 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3510 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3537 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3565 billing_name="John Doe",CODE
LOWserver/tests/merchant_migration/test_endpoints.py1378 "line1": "123 Main Street",CODE
LOW⚡server/tests/member/test_repository.py113 save_fixture, organization=organization, email="user@example.com"CODE
LOW⚡server/tests/member/test_repository.py118 email="user@example.com",CODE
LOW…sts/customer_portal/endpoints/test_customer_session.py91 save_fixture, organization=organization, email="user@example.com"CODE
LOW…sts/customer_portal/endpoints/test_customer_session.py349 save_fixture, organization=organization, email="user@example.com"CODE
LOW…sts/customer_portal/endpoints/test_customer_session.py354 email="user@example.com",CODE
LOW…tests/customer_portal/service/test_customer_session.py108 save_fixture, organization=organization, email="user@example.com"CODE
LOW…tests/customer_portal/service/test_customer_session.py179 save_fixture, organization=organization, email="user@example.com"CODE
LOW…tests/customer_portal/service/test_customer_session.py184 email="user@example.com",CODE
LOW⚡…er/tests/customer_portal/service/test_benefit_grant.py641 properties={"invited_email": "admin@example.com"},CODE
LOW⚡…er/tests/customer_portal/service/test_benefit_grant.py647 "invited_email": "admin@example.com",CODE
LOW⚡…er/tests/customer_portal/service/test_benefit_grant.py693 properties={"invited_email": "admin@example.com"},CODE
104 more matches not shown…
Cross-Language Confusion41 hits · 158 pts
SeverityFileLineSnippetContext
HIGHserver/polar/product/schemas.py498 "The last tier must be unbounded (bound set to null), "CODE
HIGHserver/polar/product/schemas.py833 "If null, it defaults to the organization's default tax behavior."CODE
HIGHserver/polar/checkout/repository.py10 null,CODE
HIGHserver/polar/compass/threads/service.py273 # Non-list JSONB (hand-edited / null) fails validation too.COMMENT
HIGHserver/polar/meter/filter.py82 # Otherwise return falseCOMMENT
HIGHserver/polar/meter/filter.py91 # Otherwise return falseCOMMENT
HIGHserver/polar/reducer_bucket/repository.py5from sqlalchemy import ColumnElement, Row, and_, func, literal, null, or_, selectCODE
HIGHserver/polar/customer/service.py757 # value from this update payload (if explicitly provided and non-null),COMMENT
HIGHserver/tests/dispute/test_service.py184 # Stripe drops network_reason_code and evidence_details.due_by when null,COMMENT
HIGHserver/scripts/snooze_stale_reviews.py144 ELSE internal_notes || E'\\n\\n' || :noteCODE
HIGHserver/scripts/reset_unconfigured_grandfathered_orgs.py274 ELSE internal_notes || E'\\n\\n' || :noteCODE
HIGHsdk/python/polar/v2027_01/outputs.py6789 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2027_01/outputs.py6839 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2027_01/outputs.py9271 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2027_01/outputs.py9311 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2027_01/outputs.py9365 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2027_01/outputs.py9408 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2027_01/outputs.py9451 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2027_01/outputs.py9492 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_10/outputs.py6750 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_10/outputs.py6800 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_10/outputs.py9185 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_10/outputs.py9225 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_10/outputs.py9279 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_10/outputs.py9322 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_10/outputs.py9365 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_10/outputs.py9435 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_04/outputs.py6744 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_04/outputs.py6794 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_04/outputs.py9155 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_04/outputs.py9195 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_04/outputs.py9249 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_04/outputs.py9292 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_04/outputs.py9335 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_04/outputs.py9405 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/generator/typescript/types.py28 return f"({inner} | null)"CODE
HIGH⚡sdk/generator/tests/test_cli_commands.py654 assert '\\"note\\": string | null,' in _flag(source, "prices")CODE
HIGHsdk/generator/generator/ir.py94 Produced by the anyOf: [{...}, {type: null}] pattern that is dominant inSTRING
HIGHdev/cli/shared.py240 " [bold]sudo rm -rf /Library/Developer/CommandLineTools && xcode-select --install[/bold]"CODE
HIGHdev/cli/up_steps/02_setup_node.py137 f" [dim]Try manually: source ~/.nvm/nvm.sh && nvm install {REQUIRED_NODE_MAJOR},"CODE
HIGHdev/cli/up_steps/02_setup_node.py147 console.print("Run: [bold]source ~/.nvm/nvm.sh && nvm use[/bold]")CODE
Structural Annotation Overuse33 hits · 64 pts
SeverityFileLineSnippetContext
LOW.agents/skills/interview-task/SKILL.md19## Step 1: fork the Polar repository to a private GitHub repository dedicated to the candidateCOMMENT
LOW⚡.agents/skills/interview-task/SKILL.md33## Step 2: create a branch for the PRCOMMENT
LOW⚡.agents/skills/interview-task/SKILL.md43## Step 3: make changes to the codebase using LLM agentCOMMENT
LOW⚡.agents/skills/interview-task/SKILL.md47## Step 4: create a pull requestCOMMENT
LOW⚡.agents/skills/interview-task/SKILL.md55## Step 5: add a comment to the PR asking the candidate to review itCOMMENT
LOW.agents/skills/handbook-backend-development/SKILL.md14## Step 1: Create the fileCOMMENT
LOW.agents/skills/handbook-backend-development/SKILL.md39## Step 2: Explore and draft the content of the entryCOMMENT
LOW.agents/skills/handbook-backend-development/SKILL.md43## Step 3: Ask for feedbackCOMMENT
LOW.agents/skills/render-env/SKILL.md36## Step 1: Add the tfe_variable to each global/{env}.tfCOMMENT
LOW.agents/skills/render-env/SKILL.md54## Step 2: Add the variable {} block to each {env}/variables.tfCOMMENT
LOW.agents/skills/render-env/SKILL.md68## Step 3: FormatCOMMENT
LOW.agents/skills/render-env/SKILL.md78## Step 4: Hand offCOMMENT
LOW⚡.agents/skills/fix-sentry/SKILL.md16## Step 1: Analyze the Sentry issueCOMMENT
LOW⚡.agents/skills/fix-sentry/SKILL.md20## Step 2: correlate with Logfire logsCOMMENT
LOW⚡.agents/skills/fix-sentry/SKILL.md28## Step 3: Search source codeCOMMENT
LOW⚡.agents/skills/fix-sentry/SKILL.md32### Step 4: Analyze findingsCOMMENT
LOW⚡.agents/skills/fix-sentry/SKILL.md36## Step 5: Implement a fixCOMMENT
LOW⚡.agents/skills/add-locale/SKILL.md19## Step 1: Sync mainCOMMENT
LOW⚡.agents/skills/add-locale/SKILL.md28## Step 2: Create the branchCOMMENT
LOW⚡.agents/skills/add-locale/SKILL.md34## Step 3: Register the localeCOMMENT
LOW.agents/skills/add-locale/SKILL.md48## Step 4: Generate the translation fileCOMMENT
LOW.agents/skills/add-locale/SKILL.md62## Step 5: Wire the locale into the i18n entrypointCOMMENT
LOW.agents/skills/add-locale/SKILL.md80## Step 6: Update the public docsCOMMENT
LOW.agents/skills/add-locale/SKILL.md94## Step 7: Hand back to the userCOMMENT
LOW⚡server/polar/integrations/plain/service.py1348 # Step 1: Try read-only lookup by email (handles legacy customers)COMMENT
LOW⚡server/polar/integrations/plain/service.py1357 # Step 2: Not found by email - upsert with external_id as identifierCOMMENT
LOW⚡server/tests/customer_seat/test_service.py2474 # Step 1: Assign a seat to the email (this creates a member)COMMENT
LOW⚡server/tests/customer_seat/test_service.py2481 # Step 2: Revoke the seat (this clears member_id, customer_id, email from seat)COMMENT
LOW⚡server/tests/customer_seat/test_service.py2488 # Step 3: Soft delete the memberCOMMENT
LOWserver/tests/customer_seat/test_service.py2501 # Step 4: Try to assign a new seat to the same emailCOMMENT
LOW⚡server/scripts/tax_filing_imports.py234 # Step 1: Count rowsCOMMENT
LOW⚡server/scripts/tax_filing_imports.py240 # Step 2: Load CSVCOMMENT
LOW⚡server/scripts/tax_filing_imports.py247 # Step 3: Process batchesCOMMENT
Redundant / Tautological Comments30 hits · 43 pts
SeverityFileLineSnippetContext
LOWserver/polar/organization/endpoints.py557 # Check if user is already member of organizationCOMMENT
LOWserver/polar/organization/endpoints.py634 # Check if user is the only memberCOMMENT
LOWserver/polar/member/service.py875 # Check if caller has permission to transfer ownershipCOMMENT
LOWserver/polar/oauth2/authorization_server.py110 # Check if this is a public client (token_endpoint_auth_method = none)COMMENT
LOWserver/polar/oauth2/authorization_server.py177 # Check if this is a public client (token_endpoint_auth_method = none)COMMENT
LOWserver/polar/oauth2/grants/authorization_code.py361 # Check if the sub has granted the requested scope or a subset of itCOMMENT
LOWserver/polar/models/subscription.py646 # Check if the meter already exists in the subscriptionCOMMENT
LOWserver/polar/backoffice/users/endpoints.py651 # Check if user can be deletedCOMMENT
LOWserver/polar/backoffice/orders/endpoints.py813 # Check if order can be refundedCOMMENT
LOWserver/polar/backoffice/orders/endpoints.py1002 # Check if order can be voidedCOMMENT
LOWserver/polar/cli/endpoints.py42 # Check if this is a webhook eventCOMMENT
LOWserver/polar/observability/utils.py16 # Check if app is excluded (e.g., backoffice)COMMENT
LOW⚡server/polar/observability/slo.py118 # Check if p99 exceeds target for any critical endpoint:STRING
LOWserver/polar/billing_entry/service.py238 # Check if this meter uses a non-summable aggregationCOMMENT
LOWserver/polar/worker/_debounce.py81 # Set TTL to avoid keys being stuck in RedisSTRING
LOWserver/polar/meter/service.py320 # Check if meter is attached to any active metered priceCOMMENT
LOWserver/polar/meter/service.py346 # Check if meter is referenced by any active Benefits with meter_credit typeCOMMENT
LOWserver/polar/refund/service.py331 # Check if there are disputes to linkCOMMENT
LOWserver/tests/order/test_service.py6160 # Set organization to use customer-based invoice numberingCOMMENT
LOWserver/tests/member/test_service.py347 # Set name to None after creationCOMMENT
LOW…sts/customer_portal/endpoints/test_customer_session.py393 # Set name to NoneCOMMENT
LOWserver/scripts/void_eligible_orders.py132 # Check if order is still pending (might have changed since query)COMMENT
LOW…ver/scripts/transfer_products_between_organizations.py134 # Check if all products belong to the same organizationCOMMENT
LOW…ver/scripts/transfer_products_between_organizations.py213 # Check if customer has orders for non-transferring productsCOMMENT
LOW…ver/scripts/transfer_products_between_organizations.py228 # Check if customer has subscriptions for non-transferring productsCOMMENT
LOW…ver/scripts/transfer_products_between_organizations.py348 # Check if this discount is used by non-transferring productsCOMMENT
LOW…ver/scripts/transfer_products_between_organizations.py463 # Check if a customer with the same email already exists in target organizationCOMMENT
LOW…ver/scripts/transfer_products_between_organizations.py608 # Check if a customer with the same email already exists in target organizationCOMMENT
LOWserver/scripts/backfill_missing_balance_order_event.py48 # Check if either event already existsCOMMENT
LOWdev/docker/scripts/startup.sh203 # Check if any organizations exist to determine if seeds are neededCOMMENT
Over-Commented Block40 hits · 38 pts
SeverityFileLineSnippetContext
LOWvercel.toml101# The api bundle exceeds the classic Lambda caps; build it as a largeCOMMENT
LOWterraform/scripts/plan-diff.sh1#!/usr/bin/env bashCOMMENT
LOWclients/packages/orbit/src/tokens/tokens.stylex.ts1// ─── Public Token Barrel ──────────────────────────────────────────────────────COMMENT
LOWclients/packages/orbit/src/tokens/value.stylex.ts1// ─── Value Tokens (Tier 1 — Primitives) ───────────────────────────────────────COMMENT
LOWclients/apps/app/expo-env.d.ts1/// <reference types="expo/types" />COMMENT
LOW…web/src/app/(main)/feedback/question/dashboardPaths.ts1// Allowed dashboard paths for assistant deep-links. Each entry is appended toCOMMENT
LOWclients/apps/web/src/utils/planSavings.test.ts181 it('returns variable + fixed savings minus monthly plan cost', () => {COMMENT
LOWinfra/preview/deploy.sh1#!/usr/bin/env bashCOMMENT
LOWinfra/preview/setup-base-vm.sh1#!/usr/bin/env bashCOMMENT
LOWserver/alembic.ini1# A generic, single database configuration.COMMENT
LOWserver/alembic.ini21# string value is passed to dateutil.tz.gettz()COMMENT
LOWserver/alembic.ini41# The path separator used here should be the separator specified by "version_path_separator" below.COMMENT
LOWserver/polar/organization/service.py141COMMENT
LOWserver/polar/merchant_migration/canonical.py161 # rows still skip until a re-precheck fills ``discount_source_ids``.COMMENT
LOWserver/polar/merchant_migration/canonical.py181 cancel_at_period_end: bool = FalseCOMMENT
LOWserver/polar/merchant_migration/canonical.py201 # The source still has to collect its latest invoice, like a renewal itCOMMENT
LOWserver/polar/tax/repository.py41 # Only US and Canada are reported at the state level; everywhere else isCOMMENT
LOWserver/polar/backoffice/middlewares.py61COMMENT
LOWserver/polar/subscription/update.py241 """Shared proration for a declared-quantity change (seats or units): oneCOMMENT
LOWserver/polar/integrations/aws/s3/schemas.py141 # S3 SHA-256 BASE64 validation for multipart upload is special.COMMENT
LOWserver/polar/compass/service.py61COMMENT
LOWserver/polar/authz/dependencies.py221# ---------------------------------------------------------------------------COMMENT
LOWserver/polar/startup_program/service.py101 # ``organization_id`` is intentionally omitted: ``POLAR_ACCESS_TOKEN``COMMENT
LOWserver/polar/invoice/generator.py541 def set_font(COMMENT
LOWserver/emails/tsconfig.json21 // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JCOMMENT
LOWserver/emails/tsconfig.json41 // "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions inCOMMENT
LOWserver/emails/tsconfig.json61 // "noEmit": true, /* Disable emitting files from a compilation. */COMMENT
LOWserver/emails/tsconfig.json81 // "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can COMMENT
LOWserver/emails/tsconfig.json101 // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly COMMENT
LOWserver/tests/subscription/test_service_prorations.py61# not a subscription in Stripe.COMMENT
LOWserver/tests/event/test_service.py2201 source=EventSource.user,COMMENT
LOWserver/tests/event/test_service.py2221 # conjunction=FilterConjunction.and_,COMMENT
LOWserver/tests/event/test_service.py2241 # )COMMENT
LOWserver/scripts/seeds_load.py1821 # "description": "Exclusive business templates",COMMENT
LOW.github/workflows/deploy.yml41 # Why per-env: sandbox can be ahead of production (failed prod deployCOMMENT
LOW.github/workflows/deploy.yml81 # would silently emit "key=" (empty value) instead of aborting.COMMENT
LOW.github/workflows/deploy-environment.yml101 "${{ inputs.render-worker-service-ids }}"COMMENT
LOW.github/workflows/deploy-environment.yml161 env:COMMENT
LOWdev/cli/cli.py1#!/usr/bin/env -S uv run -sCOMMENT
LOWdev/cli/commands/snap.py81COMMENT
AI Slop Vocabulary9 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUMclients/apps/web/src/utils/getResizedImage.ts27 // in an SSR/email environment we do this for simplicity and to leverage caching.COMMENT
MEDIUMserver/polar/organization_review/analyzer.py716 # A product-change review is a comprehensive re-review of anCOMMENT
LOWserver/polar/event/service.py1043 # events whose root_id was just set because an ancestor arrived inCOMMENT
MEDIUMserver/tests/metrics/test_tinybird_metrics.py1584 # The harness commits shared seed data once for speed, so it can't use theCOMMENT
MEDIUMserver/tests/metrics/test_service.py2327 # The harness commits shared seed data once for speed, so it can't use theCOMMENT
MEDIUMserver/tests/compass/test_endpoints.py44 # harness doesn't provide. Every scenario here 4xxs before it is used,COMMENT
MEDIUMserver/tests/payout/test_endpoints.py105 # harness doesn't provide. The authz check raises before theCOMMENT
MEDIUMdev/cli/commands/status.py1"""Show comprehensive environment status."""STRING
MEDIUMdev/cli/commands/status.py147 """Show comprehensive environment status."""STRING
Verbosity Indicators9 hits · 20 pts
SeverityFileLineSnippetContext
LOW⚡server/polar/integrations/plain/service.py1348 # Step 1: Try read-only lookup by email (handles legacy customers)COMMENT
LOW⚡server/polar/integrations/plain/service.py1357 # Step 2: Not found by email - upsert with external_id as identifierCOMMENT
LOW⚡server/tests/customer_seat/test_service.py2474 # Step 1: Assign a seat to the email (this creates a member)COMMENT
LOW⚡server/tests/customer_seat/test_service.py2481 # Step 2: Revoke the seat (this clears member_id, customer_id, email from seat)COMMENT
LOW⚡server/tests/customer_seat/test_service.py2488 # Step 3: Soft delete the memberCOMMENT
LOWserver/tests/customer_seat/test_service.py2501 # Step 4: Try to assign a new seat to the same emailCOMMENT
LOW⚡server/scripts/tax_filing_imports.py234 # Step 1: Count rowsCOMMENT
LOW⚡server/scripts/tax_filing_imports.py240 # Step 2: Load CSVCOMMENT
LOW⚡server/scripts/tax_filing_imports.py247 # Step 3: Process batchesCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALserver/polar/customer/repository.py94 customer_id = Customer.__table__.c.id.default.arg(None)CODE
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMserver/polar/worker/_broker.py255 # Group completion callbacks for orchestrating task sequencesCOMMENT
MEDIUMserver/tests/order/test_service.py7617 # here we only assert finalize's orchestration drives it with a paidCOMMENT
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMserver/tests/merchant_migration/test_cutover.py174CODE
MEDIUMserver/tests/cli/test_endpoints.py183CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWterraform/scripts/plan-diff.sh6# Usage:COMMENT
LOWinfra/preview/deploy.sh8# Usage:COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWserver/polar/worker/_runner.py184async def run_task(CODE