Repository Analysis

polarsource/polar

Polar — A billing platform for the intelligence era

15.1 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of polarsource/polar, a Python project with 10,216 GitHub stars. SynthScan v2.0 examined 845,075 lines of code across 4098 source files, recording 8707 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 15.1 places this repository in the Moderate AI signal band.

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

15.1
Adjusted Score
15.1
Raw Score
100%
Time Factor
2026-08-28
Last Push
10.2K
Stars
Python
Language
845.1K
Lines of Code
4.1K
Files
8.7K
Pattern Hits
2026-08-29
Scan Date
0.22
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 1HIGH 910MEDIUM 446LOW 7350

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers5602 hits · 5035 pts
SeverityFileLineSnippetContext
LOWclients/packages/ui/src/components/ui/chart.tsx325function getPayloadConfigFromPayload(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/i18n/index.ts8export function parseAcceptLanguageHeader(CODE
LOWclients/apps/web/src/utils/i18n/index.ts39function getLocaleFromAcceptLanguageHeader(CODE
LOWclients/apps/web/src/utils/i18n/index.ts45function getPrimaryLanguageForLocale(locale: string): string {CODE
LOWclients/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.tsx19export 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.py30def _validate_email_renderer_binary_path(value: Path) -> Path:CODE
LOWserver/polar/config.py453 def get_customer_portal_url_override(STRING
LOWserver/polar/config.py672 def apply_postgres_url_non_pooling(self) -> "Settings":STRING
LOWserver/polar/config.py746 def is_read_replica_configured(self) -> bool:STRING
LOWserver/polar/config.py811 def stripe_descriptor_suffix_max_length(self) -> int:STRING
LOWserver/polar/config.py823 def get_pydantic_gateway_model(STRING
LOWserver/polar/exception_handlers.py25async def request_validation_exception_handler(CODE
LOWserver/polar/exception_handlers.py35async def polar_redirection_exception_handler(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
LOWserver/polar/operational_errors.py62def _timeout_lock_error_matcher(exc: BaseException) -> bool:CODE
LOWserver/polar/operational_errors.py66def _external_event_already_handled_error_matcher(exc: BaseException) -> bool:CODE
LOWserver/polar/operational_errors.py73def _tinybird_operational_error_matcher(exc: BaseException) -> bool:CODE
LOWserver/polar/operational_errors.py80def _polar_self_client_operational_error_matcher(exc: BaseException) -> bool:CODE
LOWserver/polar/operational_errors.py87def _email_sender_operational_error_matcher(exc: BaseException) -> bool:CODE
LOWserver/polar/organization/service.py169def _is_hosted_website_domain(website_domain: str) -> bool:CODE
LOWserver/polar/organization/service.py176def _email_domain_matches_website(email_domain: str, website_domain: str) -> bool:CODE
LOWserver/polar/organization/service.py451 async def _validate_currency_change(CODE
LOWserver/polar/organization/service.py653 async def reset_onboarding_for_review(CODE
LOWserver/polar/organization/service.py1019 async def _sync_polar_self_customer_owner(CODE
LOWserver/polar/organization/service.py1135 def _enqueue_cancel_pending_payouts(self, organization: Organization) -> None:CODE
LOWserver/polar/organization/service.py1144 def _enqueue_reject_stripe_account(CODE
LOWserver/polar/organization/service.py1171 async def confirm_organization_reviewed(CODE
LOWserver/polar/organization/service.py1422 async def handle_ongoing_review_verdict(CODE
LOWserver/polar/organization/service.py1532 async def unsnooze_expired_organizations(CODE
LOWserver/polar/organization/service.py1552 async def offboard_expired_organizations(CODE
LOWserver/polar/organization/service.py1585 async def complete_expired_offboarding(CODE
LOWserver/polar/organization/service.py1627 async def cancel_expired_organizations_subscriptions(CODE
LOWserver/polar/organization/service.py1646 async def set_organization_offboarded(CODE
LOWserver/polar/organization/service.py1665 def _transition_to_offboarded(CODE
LOWserver/polar/organization/service.py1682 async def set_organization_under_review(CODE
LOWserver/polar/organization/service.py1781 async def handle_account_risk_signal(CODE
LOWserver/polar/organization/service.py1824 async def set_organization_offboarding(CODE
LOWserver/polar/organization/service.py2041 def _build_identity_verification_check(CODE
LOWserver/polar/organization/service.py2081 def _build_product_description_check(CODE
LOWserver/polar/organization/service.py2099 def _build_payout_account_check(CODE
LOWserver/polar/organization/service.py2127 async def _build_product_configuration_check(CODE
5542 more matches not shown…
Cross-File Repetition718 hits · 3590 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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
HIGHserver/polar/webhook/webhooks.py0sent when a new order is created. a new order is created when: * a customer purchases a one-time product. in this case, STRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a new order is created. a new order is created when: * a customer purchases a one-time product. in this case, STRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a new order is created. a new order is created when: * a customer purchases a one-time product. in this case, STRING
HIGHserver/polar/webhook/webhooks.py0sent when an order is updated. an order is updated when: * its status changes, e.g. from `pending` to `paid`. * it's refSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when an order is updated. an order is updated when: * its status changes, e.g. from `pending` to `paid`. * it's refSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when an order is updated. an order is updated when: * its status changes, e.g. from `pending` to `paid`. * it's refSTRING
HIGHserver/polar/webhook/webhooks.py0sent when an order is paid. when you receive this event, the order is fully processed and payment has been received. **dSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when an order is paid. when you receive this event, the order is fully processed and payment has been received. **dSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when an order is paid. when you receive this event, the order is fully processed and payment has been received. **dSTRING
HIGHserver/polar/webhook/webhooks.py0sent when an order is fully or partially refunded. **discord & slack support:** fullSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when an order is fully or partially refunded. **discord & slack support:** fullSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when an order is fully or partially refunded. **discord & slack support:** fullSTRING
HIGHserver/polar/webhook/webhooks.py0sent when a new subscription is created. when this event occurs, the subscription `status` might not be `active` yet, asSTRING
HIGHsdk/python/polar/v2026_10/webhooks.py0sent when a new subscription is created. when this event occurs, the subscription `status` might not be `active` yet, asSTRING
HIGHsdk/python/polar/v2026_04/webhooks.py0sent when a new subscription is created. when this event occurs, the subscription `status` might not be `active` yet, asSTRING
658 more matches not shown…
Decorative Section Separators259 hits · 846 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.tf167# =============================================================================COMMENT
MEDIUMterraform/test/aws.tf169# =============================================================================COMMENT
MEDIUMterraform/test/aws.tf194# =============================================================================COMMENT
MEDIUMterraform/test/aws.tf196# =============================================================================COMMENT
MEDIUMterraform/test/aws.tf256# =============================================================================COMMENT
MEDIUMterraform/test/aws.tf258# =============================================================================COMMENT
MEDIUMterraform/test/render.tf2# =============================================================================COMMENT
MEDIUMterraform/test/render.tf4# =============================================================================COMMENT
MEDIUMterraform/test/render.tf18# =============================================================================COMMENT
MEDIUMterraform/test/render.tf20# =============================================================================COMMENT
MEDIUMterraform/test/render.tf32# =============================================================================COMMENT
MEDIUMterraform/test/render.tf34# =============================================================================COMMENT
MEDIUMterraform/test/render.tf76# =============================================================================COMMENT
MEDIUMterraform/test/render.tf78# =============================================================================COMMENT
MEDIUMterraform/test/render.tf84# =============================================================================COMMENT
MEDIUMterraform/test/render.tf86# =============================================================================COMMENT
MEDIUMterraform/test/render.tf174# =============================================================================COMMENT
MEDIUMterraform/test/render.tf176# =============================================================================COMMENT
MEDIUMterraform/test/render.tf225# =============================================================================COMMENT
MEDIUMterraform/test/render.tf227# =============================================================================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.tf188# =============================================================================COMMENT
MEDIUMterraform/sandbox/aws.tf190# =============================================================================COMMENT
MEDIUMterraform/sandbox/aws.tf212# =============================================================================COMMENT
MEDIUMterraform/sandbox/aws.tf214# =============================================================================COMMENT
MEDIUMterraform/sandbox/aws.tf270# =============================================================================COMMENT
MEDIUMterraform/sandbox/aws.tf272# =============================================================================COMMENT
MEDIUMterraform/sandbox/variables.tf1# =============================================================================COMMENT
MEDIUMterraform/sandbox/variables.tf3# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf2# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf4# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf13# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf15# ============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf30# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf32# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf47# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf49# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf73# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf75# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf81# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf83# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf184# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf186# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf233# =============================================================================COMMENT
MEDIUMterraform/sandbox/render.tf235# =============================================================================COMMENT
MEDIUMterraform/sandbox/vercel.tf1# =============================================================================COMMENT
MEDIUMterraform/sandbox/vercel.tf3# =============================================================================COMMENT
MEDIUMterraform/production/ecs.tf7# =============================================================================COMMENT
MEDIUMterraform/production/ecs.tf9# =============================================================================COMMENT
199 more matches not shown…
Docstring Block Structure169 hits · 845 pts
SeverityFileLineSnippetContext
HIGHserver/polar/member/service.py155 Soft delete a member. Any active seats assigned to this member will be automatically revoked bSTRING
HIGHserver/polar/member/service.py545 Create a new member for a customer. The customer is resolved by either its internal ID (`customer_id`)STRING
HIGHserver/polar/kit/http.py72 Validate that the URL is crawlable (not private/reserved). Args: url: The URL to validate. ReturnSTRING
HIGHserver/polar/tax/tax_id.py501 Validate a tax ID for a given country. Args: number: The tax ID to validate. country: The counSTRING
HIGHserver/polar/tax/tax_id.py529 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/v2026_10/services/files.py89 List files. **Scopes**: `files:read` `files:write` Args: organization_id: Filter STRING
HIGHsdk/python/polar/v2026_10/services/files.py378 List files. **Scopes**: `files:read` `files:write` Args: organization_id: Filter STRING
HIGHsdk/python/polar/v2026_10/services/payments.py106 List payments. **Scopes**: `payments:read` Args: organization_id: Filter by organSTRING
HIGHsdk/python/polar/v2026_10/services/payments.py273 List payments. **Scopes**: `payments:read` Args: organization_id: Filter by organSTRING
HIGHsdk/python/polar/v2026_10/services/checkouts.py115 List checkout sessions. **Scopes**: `checkouts:read` `checkouts:write` Args: orgaSTRING
HIGHsdk/python/polar/v2026_10/services/checkouts.py487 List checkout sessions. **Scopes**: `checkouts:read` `checkouts:write` Args: orgaSTRING
HIGHsdk/python/polar/v2026_10/services/meters.py102 List meters. **Scopes**: `meters:read` `meters:write` Args: organization_id: FiltSTRING
HIGHsdk/python/polar/v2026_10/services/meters.py393 List meters. **Scopes**: `meters:read` `meters:write` Args: organization_id: FiltSTRING
HIGHsdk/python/polar/v2026_10/services/disputes.py91 List disputes. **Scopes**: `disputes:read` `disputes:write` Args: organization_idSTRING
HIGHsdk/python/polar/v2026_10/services/disputes.py278 List disputes. **Scopes**: `disputes:read` `disputes:write` Args: organization_idSTRING
HIGHsdk/python/polar/v2026_10/services/members.py88 List members with optional customer ID filter. **Scopes**: `members:read` `members:write` ArgSTRING
HIGHsdk/python/polar/v2026_10/services/members.py192 List members with optional customer ID filter. **Scopes**: `members:read` `members:write` ArgSTRING
HIGHsdk/python/polar/v2026_10/services/license_keys.py101 Get license keys connected to the given organization & filters. **Scopes**: `license_keys:read` `licenSTRING
HIGHsdk/python/polar/v2026_10/services/license_keys.py450 Get license keys connected to the given organization & filters. **Scopes**: `license_keys:read` `licenSTRING
HIGHsdk/python/polar/v2026_10/services/customer_meters.py93 List customer meters. **Scopes**: `customer_meters:read` Args: organization_id: FSTRING
HIGHsdk/python/polar/v2026_10/services/customer_meters.py242 List customer meters. **Scopes**: `customer_meters:read` Args: organization_id: FSTRING
HIGHsdk/python/polar/v2026_10/services/checkout_links.py92 List checkout links. **Scopes**: `checkout_links:read` `checkout_links:write` Args: STRING
HIGHsdk/python/polar/v2026_10/services/checkout_links.py370 List checkout links. **Scopes**: `checkout_links:read` `checkout_links:write` Args: STRING
HIGHsdk/python/polar/v2026_10/services/events.py193 List event names. **Scopes**: `events:read` `events:write` Args: organization_id:STRING
HIGHsdk/python/polar/v2026_10/services/events.py470 List event names. **Scopes**: `events:read` `events:write` Args: organization_id:STRING
HIGHsdk/python/polar/v2026_10/services/refunds.py108 List refunds. **Scopes**: `refunds:read` `refunds:write` Args: id: Filter by refuSTRING
HIGHsdk/python/polar/v2026_10/services/refunds.py274 List refunds. **Scopes**: `refunds:read` `refunds:write` Args: id: Filter by refuSTRING
HIGHsdk/python/polar/v2026_10/services/subscriptions.py158 List subscriptions. **Scopes**: `subscriptions:read` `subscriptions:write` Args: STRING
HIGHsdk/python/polar/v2026_10/services/subscriptions.py651 List subscriptions. **Scopes**: `subscriptions:read` `subscriptions:write` Args: STRING
HIGHsdk/python/polar/v2026_10/services/discounts.py91 List discounts. **Scopes**: `discounts:read` `discounts:write` Args: organizationSTRING
HIGHsdk/python/polar/v2026_10/services/discounts.py361 List discounts. **Scopes**: `discounts:read` `discounts:write` Args: organizationSTRING
HIGHsdk/python/polar/v2026_10/services/products.py118 List products. **Scopes**: `products:read` `products:write` Args: id: Filter by pSTRING
HIGHsdk/python/polar/v2026_10/services/products.py431 List products. **Scopes**: `products:read` `products:write` Args: id: Filter by pSTRING
HIGHsdk/python/polar/v2026_10/services/orders.py146 List orders. **Scopes**: `orders:read` Args: organization_id: Filter by organizatSTRING
HIGHsdk/python/polar/v2026_10/services/orders.py657 List orders. **Scopes**: `orders:read` Args: organization_id: Filter by organizatSTRING
HIGHsdk/python/polar/v2026_10/services/organizations.py88 List organizations. **Scopes**: `organizations:read` `organizations:write` Args: STRING
HIGHsdk/python/polar/v2026_10/services/organizations.py303 List organizations. **Scopes**: `organizations:read` `organizations:write` Args: STRING
HIGHsdk/python/polar/v2026_10/services/benefits.py127 List benefits. **Scopes**: `benefits:read` `benefits:write` Args: organization_idSTRING
HIGHsdk/python/polar/v2026_10/services/benefits.py526 List the downloadable files for a benefit with their download statistics. **Scopes**: `benefits:read` STRING
HIGHsdk/python/polar/v2026_10/services/benefits.py628 List the individual grants for a benefit. It's especially useful to check if a user has been granted aSTRING
HIGHsdk/python/polar/v2026_10/services/benefits.py747 List benefits. **Scopes**: `benefits:read` `benefits:write` Args: organization_idSTRING
HIGHsdk/python/polar/v2026_10/services/benefits.py1147 List the downloadable files for a benefit with their download statistics. **Scopes**: `benefits:read` STRING
HIGHsdk/python/polar/v2026_10/services/benefits.py1250 List the individual grants for a benefit. It's especially useful to check if a user has been granted aSTRING
HIGHsdk/python/polar/v2026_10/services/custom_fields.py103 List custom fields. **Scopes**: `custom_fields:read` `custom_fields:write` Args: STRING
HIGHsdk/python/polar/v2026_10/services/custom_fields.py448 List custom fields. **Scopes**: `custom_fields:read` `custom_fields:write` Args: STRING
HIGHsdk/python/polar/v2026_10/services/webhooks.py83 List webhook endpoints. **Scopes**: `webhooks:read` `webhooks:write` Args: organiSTRING
109 more matches not shown…
Unused Imports726 hits · 654 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/openapi.py13CODE
LOWserver/polar/logfire.py23CODE
LOWserver/polar/logfire.py24CODE
LOWserver/polar/logfire.py24CODE
LOWserver/polar/logfire.py25CODE
LOWserver/polar/logfire.py26CODE
LOWserver/polar/__init__.py5CODE
LOWserver/polar/postgres.py8CODE
LOWserver/polar/app.py8CODE
LOWserver/polar/organization/service.py44CODE
LOWserver/polar/organization/tasks.py2CODE
LOWserver/polar/organization/tasks.py5CODE
LOWserver/polar/event_type/__init__.py1CODE
LOWserver/polar/order/repository.py46CODE
LOWserver/polar/metrics/metrics.py8CODE
666 more matches not shown…
Self-Referential Comments160 hits · 525 pts
SeverityFileLineSnippetContext
MEDIUMserver/polar/transaction/service/dispute.py108 # Create the dispute, i.e. the transaction withdrawing the amountCOMMENT
MEDIUM…rver/polar/customer_portal/endpoints/oauth_accounts.py230 # 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.py173 # Create a copy to avoid mutating the original listCOMMENT
MEDIUMserver/polar/backoffice/organizations_v2/endpoints.py4505 # Create the creditCOMMENT
MEDIUMserver/polar/payout/service.py714 # Create a new payout attemptCOMMENT
MEDIUMserver/tests/organization/test_service.py1983 # Create a review recordCOMMENT
MEDIUMserver/tests/organization/test_endpoints.py1359 # Create a customer and order for this organizationCOMMENT
MEDIUMserver/tests/organization/test_endpoints.py1392 # Create a customer and active subscription for this organizationCOMMENT
MEDIUMserver/tests/organization/test_backfill_members.py526 # Create a benefit grant without member_id (legacy)COMMENT
MEDIUMserver/tests/organization/test_backfill_members.py649 # Create a grant that already has member_id setCOMMENT
MEDIUMserver/tests/organization/test_backfill_members.py789 # Create a grant under the old seat-holder customerCOMMENT
MEDIUMserver/tests/organization/test_backfill_members.py869 # Create a grant and license key under the old seat-holder customerCOMMENT
MEDIUM…er/tests/organization/test_backfill_benefit_records.py652 # Create a second customer+member for a different grantCOMMENT
MEDIUMserver/tests/order/test_service.py3483 # Create a pending order with tax calculation processor IDCOMMENT
MEDIUMserver/tests/order/test_service.py3498 # Create a paymentCOMMENT
MEDIUMserver/tests/order/test_service.py3533 # Create a customer with a billing address so that _calculate_taxCOMMENT
MEDIUMserver/tests/order/test_service.py4428 # Create a failed payment with a non-recoverable decline reasonCOMMENT
MEDIUMserver/tests/order/test_service.py6461 # Create a subscriptionCOMMENT
MEDIUMserver/tests/transaction/service/test_transaction.py204 # Create an old balance transaction (8 days ago - should be available)COMMENT
MEDIUMserver/tests/transaction/service/test_transaction.py216 # Create a recent balance transaction (2 days ago - should NOT be available)COMMENT
MEDIUMserver/tests/transaction/service/test_transaction.py227 # Create a payout transaction (2 days ago - should ALWAYS be available)COMMENT
MEDIUMserver/tests/transaction/service/test_transaction.py238 # 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.py490 # Create the payment transactionCOMMENT
MEDIUMserver/tests/transaction/service/test_refund.py639 # Create a charge and orderCOMMENT
MEDIUMserver/tests/transaction/service/test_refund.py650 # Create the payment transactionCOMMENT
MEDIUMserver/tests/merchant_migration/test_stripe_adapter.py115 # Creating a migration needs both the id and the country; one read servesCOMMENT
MEDIUMserver/tests/customer_email_update/test_service.py99 # Create an existing pending verificationCOMMENT
MEDIUMserver/tests/payment/test_service.py24 # Create a checkoutCOMMENT
MEDIUMserver/tests/payment/test_service.py27 # Create a charge with checkout_id in metadataCOMMENT
MEDIUMserver/tests/payment/test_service.py67 # Create an orderCOMMENT
MEDIUMserver/tests/payment/test_service.py74 # Create a charge with invoiceCOMMENT
MEDIUMserver/tests/payment/test_service.py108 # Create a checkoutCOMMENT
MEDIUMserver/tests/payment/test_service.py114 # Create an order from the checkoutCOMMENT
MEDIUMserver/tests/payment/test_service.py122 # Create a charge with checkout_id in metadataCOMMENT
MEDIUMserver/tests/payment/test_service.py310 # Create a checkoutCOMMENT
MEDIUMserver/tests/payment/test_service.py313 # Create a payment intent with last_payment_errorCOMMENT
MEDIUMserver/tests/payment/test_service.py359 # Create an orderCOMMENT
MEDIUMserver/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.py522 # Create the first member (owner)COMMENT
MEDIUMserver/tests/member/test_service.py569 # Create the first member (owner)COMMENT
MEDIUMserver/tests/member/test_endpoints.py200 # Create a customer for a different organization that the user doesn't have access toCOMMENT
MEDIUMserver/tests/member/test_endpoints.py209 # Create a memberCOMMENT
MEDIUMserver/tests/member/test_endpoints.py156 # Create a customerCOMMENT
MEDIUMserver/tests/member/test_endpoints.py1319 # Create a customer and memberCOMMENT
MEDIUMserver/tests/member/test_endpoints.py1368 # Create a member for a different organizationCOMMENT
MEDIUMserver/tests/customer_portal/endpoints/test_customer.py89 # Create a payment method with no subscriptionsCOMMENT
MEDIUMserver/tests/customer_portal/endpoints/test_customer.py115 # Create an active subscription using the first payment methodCOMMENT
MEDIUMserver/tests/customer_portal/endpoints/test_customer.py147 # Create a payment methodCOMMENT
MEDIUMserver/tests/customer_portal/endpoints/test_customer.py150 # Create an active subscription using this payment methodCOMMENT
MEDIUMserver/tests/customer_portal/endpoints/test_customer.py178 # Create a payment methodCOMMENT
MEDIUMserver/tests/customer_portal/endpoints/test_customer.py181 # Create a canceled subscription using this payment methodCOMMENT
100 more matches not shown…
Deep Nesting260 hits · 252 pts
SeverityFileLineSnippetContext
LOWserver/polar/middlewares.py22CODE
LOWserver/polar/organization/service.py2139CODE
LOWserver/polar/organization/tasks.py387CODE
LOWserver/polar/organization/tasks.py582CODE
LOWserver/polar/organization/tasks.py965CODE
LOWserver/polar/organization/tasks.py1093CODE
LOWserver/polar/organization/resolver.py24CODE
LOWserver/polar/webhook/service.py231CODE
LOWserver/polar/event_type/service.py42CODE
LOWserver/polar/order/service.py1695CODE
LOWserver/polar/order/service.py1896CODE
LOWserver/polar/order/repository.py412CODE
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.py62CODE
LOWserver/polar/transaction/service/refund.py61CODE
LOWserver/polar/transaction/service/refund.py181CODE
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/precheck.py141CODE
LOWserver/polar/merchant_migration/precheck.py881CODE
LOWserver/polar/organization_access_token/service.py47CODE
LOW…rver/polar/customer_portal/endpoints/oauth_accounts.py118CODE
LOWserver/polar/customer_portal/service/subscription.py88CODE
LOWserver/polar/customer_portal/service/order.py66CODE
LOWserver/polar/customer_portal/service/benefit_grant.py45CODE
LOWserver/polar/customer_portal/service/benefit_grant.py154CODE
LOWserver/polar/kit/schemas.py31CODE
LOWserver/polar/kit/versioning.py243CODE
LOWserver/polar/kit/pagination.py151CODE
LOWserver/polar/kit/pagination.py197CODE
LOWserver/polar/tax/repository.py33CODE
LOWserver/polar/user/service.py295CODE
LOWserver/polar/models/subscription_product_price.py47CODE
LOWserver/polar/models/order_item.py84CODE
LOWserver/polar/models/refund.py111CODE
LOWserver/polar/backoffice/forms.py608CODE
LOWserver/polar/backoffice/static_urls.py6CODE
LOWserver/polar/backoffice/customers/endpoints.py154CODE
LOWserver/polar/backoffice/customers/endpoints.py221CODE
LOWserver/polar/backoffice/customers/endpoints.py661CODE
LOWserver/polar/backoffice/customers/endpoints.py726CODE
LOWserver/polar/backoffice/customers/endpoints.py762CODE
LOWserver/polar/backoffice/customers/endpoints.py895CODE
LOWserver/polar/backoffice/customers/endpoints.py950CODE
LOWserver/polar/backoffice/customers/endpoints.py1002CODE
LOWserver/polar/backoffice/customers/endpoints.py1070CODE
LOWserver/polar/backoffice/customers/endpoints.py1140CODE
LOWserver/polar/backoffice/tasks/forms.py40CODE
LOWserver/polar/backoffice/tasks/forms.py69CODE
LOWserver/polar/backoffice/tasks/endpoints.py20CODE
LOWserver/polar/backoffice/tasks/endpoints.py61CODE
LOWserver/polar/backoffice/products/endpoints.py31CODE
LOWserver/polar/backoffice/products/endpoints.py83CODE
LOWserver/polar/backoffice/products/endpoints.py165CODE
200 more matches not shown…
AI Structural Patterns194 hits · 189 pts
SeverityFileLineSnippetContext
LOWserver/polar/webhook/endpoints.py167CODE
LOWserver/polar/event_type/service.py42CODE
LOWserver/polar/event_type/endpoints.py25CODE
LOWserver/polar/order/service.py371CODE
LOWserver/polar/order/endpoints.py99CODE
LOWserver/polar/order/endpoints.py178CODE
LOWserver/polar/metrics/endpoints.py58CODE
LOWserver/polar/metrics/endpoints.py153CODE
LOWserver/polar/checkout_link/endpoints.py174CODE
LOWserver/polar/auth/service.py64CODE
LOWserver/polar/auth/oauth2/router.py79CODE
LOWserver/polar/auth/sso/endpoints.py187CODE
LOWserver/polar/payment/service.py47CODE
LOWserver/polar/payment/endpoints.py30CODE
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.py341CODE
LOWserver/polar/backoffice/support_cases/queries.py54CODE
LOWserver/polar/product/service.py74CODE
LOWserver/polar/product/endpoints.py53CODE
LOWserver/polar/subscription/service.py511CODE
LOWserver/polar/subscription/endpoints.py74CODE
LOWserver/polar/subscription/endpoints.py164CODE
LOWserver/polar/email_update/endpoints.py63CODE
LOWserver/polar/worker/_runner.py178CODE
LOWserver/polar/meter/endpoints.py103CODE
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.py71CODE
LOWserver/polar/event/endpoints.py220CODE
LOWserver/polar/event/endpoints.py276CODE
LOWserver/polar/event/endpoints.py328CODE
LOWserver/polar/event/endpoints.py385CODE
LOWserver/polar/refund/service.py123CODE
LOWserver/polar/refund/endpoints.py25CODE
LOWserver/polar/benefit/service.py36CODE
LOWserver/tests/metrics/test_tinybird_metrics.py1090CODE
LOWserver/tests/transaction/conftest.py31CODE
LOWserver/tests/merchant_migration/test_stripe_adapter.py209CODE
LOWserver/tests/merchant_migration/test_precheck.py116CODE
LOWserver/tests/merchant_migration/_helpers.py136CODE
LOWserver/tests/dispute/test_service.py1484CODE
LOWserver/tests/integrations/polar/test_service.py2220CODE
LOWserver/tests/scripts/test_reingest_missing_events.py24CODE
LOWserver/tests/organization_review/test_feedback.py111CODE
LOWserver/tests/refund/test_service.py129CODE
LOWserver/scripts/preview.py1159CODE
LOWsdk/python/polar/v2026_10/services/payments.py27CODE
LOWsdk/python/polar/v2026_10/services/payments.py91CODE
LOWsdk/python/polar/v2026_10/services/payments.py194CODE
LOWsdk/python/polar/v2026_10/services/payments.py258CODE
LOWsdk/python/polar/v2026_10/services/checkouts.py40CODE
LOWsdk/python/polar/v2026_10/services/checkouts.py101CODE
LOWsdk/python/polar/v2026_10/services/checkouts.py412CODE
134 more matches not shown…
Modern Structural Boilerplate167 hits · 168 pts
SeverityFileLineSnippetContext
LOWserver/polar/tasks.py47__all__ = [CODE
LOWserver/polar/openapi.py97__all__ = [CODE
LOWserver/polar/logfire.py240__all__ = [CODE
LOWserver/polar/redis.py116__all__ = [CODE
LOWserver/polar/routing.py31__all__ = ["APIRouter"]CODE
LOWserver/polar/postgres.py123__all__ = [CODE
LOWserver/polar/rate_limit.py318__all__ = [CODE
LOWserver/polar/sentry.py83def set_sentry_user(auth_subject: AuthSubject[Subject]) -> None:CODE
LOWserver/polar/event_type/__init__.py3__all__ = ["EventTypeRepository"]CODE
LOWserver/polar/order/tasks.py206async def update_product_benefits_grants(product_id: uuid.UUID) -> None: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.py396def _settle(step: PanTransferStep, actor: PanStepActor) -> None:CODE
LOWserver/polar/merchant_migration/adapters/__init__.py4__all__ = ["SourceAdapter", "StripeAdapter"]CODE
LOWserver/polar/auth/models.py147__all__ = [CODE
LOWserver/polar/auth/exception_handlers.py17__all__ = ["PolarAuthRedirectionError", "auth_redirection_error_exception_handler"]CODE
LOWserver/polar/auth/routing.py88__all__ = ["DocumentedAuthSubjectAPIRoute"]CODE
LOWserver/polar/member/__init__.py3__all__ = ["Member", "MemberCreate", "MemberOwnerCreate"]CODE
LOWserver/polar/oauth2/exception_handlers.py15__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__.py31__all__ = ["AuthorizationCodeGrant", "CodeChallenge", "register_grants"]CODE
LOWserver/polar/kit/cors.py78__all__ = ["CORSConfig", "CORSMatcherMiddleware", "Scope"]CODE
LOWserver/polar/kit/routing.py211__all__ = [CODE
LOWserver/polar/kit/email.py49__all__ = [CODE
LOWserver/polar/kit/repository/__init__.py11__all__ = [CODE
LOWserver/polar/kit/extensions/sqlalchemy/__init__.py4__all__ = ["IntEnum", "StringEnum", "sql"]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.py570__all__ = [CODE
LOWserver/polar/tax/calculation/__init__.py231__all__ = [CODE
LOWserver/polar/models/user.py161 async def set_tokens(self, *, access_token: str, refresh_token: str | None) -> None:CODE
LOWserver/polar/models/product_price.py500def 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.py820 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__.py130__all__ = [CODE
LOWserver/polar/models/oauth2_client.py127 async def set_client_secret(self, client_secret: str) -> None:CODE
LOWserver/polar/models/oauth2_client.py151 def set_client_secret_sync(self, client_secret: str) -> None:CODE
LOWserver/polar/models/benefit_grant.py205 def set_granted(self) -> None:CODE
LOWserver/polar/models/benefit_grant.py210 def set_revoked(self) -> None:CODE
LOWserver/polar/models/benefit_grant.py215 def set_grant_failed(self, error: Exception) -> None:CODE
LOWserver/polar/backoffice/__init__.py80__all__ = ["app"]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.py4920__all__ = ["router"]CODE
LOW…r/polar/backoffice/organizations_v2/views/list_view.py879__all__ = ["OrganizationListView"]CODE
LOW…polar/backoffice/organizations_v2/views/detail_view.py940__all__ = ["OrganizationDetailView"]CODE
LOW…ce/organizations_v2/views/sections/overview_section.py835__all__ = ["OverviewSection"]CODE
LOW…office/organizations_v2/views/sections/risk_signals.py216__all__ = [CODE
LOW…ice/organizations_v2/views/sections/reviews_section.py229__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
LOW…ations_v2/views/sections/support_cases_list_section.py101__all__ = ["SupportCasesListSection"]CODE
107 more matches not shown…
Excessive Try-Catch Wrapping138 hits · 158 pts
SeverityFileLineSnippetContext
LOWserver/polar/middlewares.py254 except Exception as exc:CODE
LOWserver/polar/organization/service.py782 except Exception as e:CODE
LOWserver/polar/organization/schemas.py373 except Exception:CODE
LOWserver/polar/webhook/tasks.py312 except Exception as e:CODE
LOWserver/polar/external_event/service.py73 except Exception:CODE
LOWserver/polar/order/service.py367 except Exception:CODE
LOWserver/polar/order/service.py1204 except Exception:CODE
LOWserver/polar/order/service.py2093 except Exception as exc:CODE
LOWserver/polar/order/service.py2305 except Exception:CODE
LOWserver/polar/order/service.py2720 except Exception as e:CODE
LOWserver/polar/order/service.py2991 except Exception as e:CODE
LOWserver/polar/transaction/service/dispute.py287 except Exception as e:CODE
LOWserver/polar/transaction/service/refund.py175 except Exception as e:CODE
LOWserver/polar/transaction/service/refund.py274 except Exception as e:CODE
LOWserver/polar/merchant_migration/cutover.py258 except Exception:CODE
LOWserver/polar/merchant_migration/cutover.py391 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.py480 except Exception:CODE
LOWserver/polar/backoffice/organizations_v2/endpoints.py2826 except Exception as e:CODE
LOWserver/polar/backoffice/organizations_v2/endpoints.py4102 except Exception as e:CODE
LOWserver/polar/backoffice/organizations_v2/endpoints.py4141 except Exception as e:CODE
LOW…ice/organizations_v2/views/sections/reviews_section.py145 except Exception:CODE
LOWserver/polar/backoffice/email_logs/endpoints.py169 except Exception:CODE
LOWserver/polar/backoffice/benefits/endpoints.py186 except Exception:CODE
LOWserver/polar/backoffice/orders/endpoints.py271 except Exception:CODE
LOWserver/polar/backoffice/orders/endpoints.py280 except Exception:CODE
LOWserver/polar/backoffice/orders/endpoints.py815 except Exception as e:CODE
LOWserver/polar/backoffice/orders/endpoints.py984 except Exception as e:CODE
LOWserver/polar/backoffice/orders/endpoints.py1042 except Exception as e:CODE
LOWserver/polar/backoffice/orders/endpoints.py1106 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
LOWserver/polar/observability/slo.py109 except Exception:CODE
LOWserver/polar/observability/slo_report/tasks.py87 except Exception as e:CODE
LOWserver/polar/checkout/service.py1511 except Exception as e:CODE
LOWserver/polar/checkout/service.py1572 except Exception as e:CODE
LOWserver/polar/checkout/service.py1691 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.py275 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.py58 except Exception:CODE
MEDIUMserver/polar/receipt/render.py50def main() -> int:CODE
LOWserver/polar/support_case/pdf.py31 except Exception:CODE
LOWserver/polar/support_case/pdf.py40 except Exception:CODE
LOWserver/polar/organization_review/analyzer.py721 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
LOWserver/polar/organization_review/agent.py333 except Exception as e:CODE
LOWserver/polar/organization_review/collectors/setup.py38 except Exception:CODE
78 more matches not shown…
Fake / Example Data136 hits · 133 pts
SeverityFileLineSnippetContext
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
LOW…/apps/web/src/components/Landing/chapters/Platform.tsx63 { name: 'Jane Doe', tokens: '4.1M tokens', margin: '+86%', negative: false },CODE
LOWserver/polar/member/schemas.py25_name_example = "Jane Doe"CODE
LOWserver/polar/backoffice/organizations_v2/endpoints.py1476 "placeholder": "Why are you denying this organization?",CODE
LOWserver/polar/backoffice/organizations_v2/endpoints.py1644 "placeholder": reason_placeholder,CODE
LOWserver/polar/backoffice/organizations_v2/endpoints.py2186 "placeholder": reason_placeholder,CODE
LOW…r/polar/backoffice/organizations_v2/views/list_view.py481 "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_sale.tsx64 billing_address_line1: '123 Main St',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.py1398 reset_by="admin@example.com",CODE
LOWserver/tests/organization/test_service.py1413 assert "admin@example.com" in result.internal_notesCODE
LOWserver/tests/organization/test_service.py1442 reset_by="admin@example.com",CODE
LOWserver/tests/organization/test_embed_hosts.py129 "user@example.com",CODE
LOWserver/tests/organization/test_schemas.py85 "Acme Inc",CODE
LOWserver/tests/order/test_service.py3053 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3133 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3156 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3178 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3214 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3236 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3259 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3283 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3305 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3337 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3364 billing_name="John Doe",CODE
LOWserver/tests/order/test_service.py3392 billing_name="John Doe",CODE
LOWserver/tests/member/test_repository.py113 save_fixture, organization=organization, email="user@example.com"CODE
LOWserver/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.py107 save_fixture, organization=organization, email="user@example.com"CODE
LOW…tests/customer_portal/service/test_customer_session.py202 save_fixture, organization=organization, email="user@example.com"CODE
LOW…tests/customer_portal/service/test_customer_session.py207 email="user@example.com",CODE
LOW…er/tests/customer_portal/service/test_benefit_grant.py553 properties={"invited_email": "admin@example.com"},CODE
LOW…er/tests/customer_portal/service/test_benefit_grant.py559 "invited_email": "admin@example.com",CODE
LOW…er/tests/customer_portal/service/test_benefit_grant.py605 properties={"invited_email": "admin@example.com"},CODE
LOW…er/tests/customer_portal/service/test_benefit_grant.py612 "invited_email": "admin@example.com",CODE
LOW…er/tests/customer_portal/service/test_benefit_grant.py646 "invited_email": "admin@example.com",CODE
LOW…er/tests/customer_portal/service/test_benefit_grant.py657 properties={"invited_email": "admin@example.com"},CODE
LOW…er/tests/customer_portal/service/test_benefit_grant.py664 "invited_email": "admin@example.com",CODE
LOWserver/tests/kit/test_anonymization.py36 result = anonymize_email_for_deletion("user@example.com", created_at)CODE
LOWserver/tests/kit/test_anonymization.py42 email = "user@example.com"CODE
LOWserver/tests/kit/test_anonymization.py52 email = "user@example.com"CODE
LOWserver/tests/tax/calculation/test_numeral.py16 line1="123 Main St",CODE
LOWserver/tests/tax/calculation/test_stripe.py16 line1="123 Main St",CODE
LOWserver/tests/models/test_oauth_account.py16 account_email="foo@bar.com",CODE
LOW…s/observability/observability/test_s3_span_exporter.py168 "attributes": {"Email": "test@test.com", "USERNAME": "test"},CODE
LOWserver/tests/checkout/test_service.py2977 "customer_name": "John Doe",CODE
LOWserver/tests/checkout/test_service.py2980 "company": "Acme Inc",CODE
76 more matches not shown…
Cross-Language Confusion23 hits · 95 pts
SeverityFileLineSnippetContext
HIGHserver/polar/product/schemas.py768 "If null, it defaults to the organization's default tax behavior."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/customer/service.py754 # value from this update payload (if explicitly provided and non-null),COMMENT
HIGHserver/tests/dispute/test_service.py183 # 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/v2026_10/outputs.py6254 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_10/outputs.py6302 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_10/outputs.py8568 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_10/outputs.py8607 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_10/outputs.py8659 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_10/outputs.py8700 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_04/outputs.py6254 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_04/outputs.py6302 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_04/outputs.py8568 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_04/outputs.py8607 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_04/outputs.py8659 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/python/polar/v2026_04/outputs.py8700 """The tax behavior of the price. If null, it defaults to the organization's default tax behavior."""STRING
HIGHsdk/generator/typescript/types.py27 return f"({inner} | null)"CODE
HIGHsdk/generator/generator/ir.py88 Produced by the anyOf: [{...}, {type: null}] pattern that is dominant inSTRING
HIGHdev/cli/up_steps/02_setup_node.py147 console.print("Run: [bold]source ~/.nvm/nvm.sh && nvm use[/bold]")CODE
Structural Annotation Overuse45 hits · 86 pts
SeverityFileLineSnippetContext
LOW…s/apps/web/e2e/healing/prompts/e2e-checkout-healing.md17### Step 1: Read the failing testCOMMENT
LOW…s/apps/web/e2e/healing/prompts/e2e-checkout-healing.md21### Step 2: Reproduce the test manuallyCOMMENT
LOW…s/apps/web/e2e/healing/prompts/e2e-checkout-healing.md37### Step 3: Classify the failureCOMMENT
LOW…s/apps/web/e2e/healing/prompts/e2e-checkout-healing.md45### Step 4: Take action based on classificationCOMMENT
LOW…s/apps/web/e2e/healing/prompts/e2e-checkout-healing.md114### Step 5: Check for suspicious recent PRsCOMMENT
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
LOWserver/polar/integrations/plain/service.py1348 # Step 1: Try read-only lookup by email (handles legacy customers)COMMENT
LOWserver/polar/integrations/plain/service.py1357 # Step 2: Not found by email - upsert with external_id as identifierCOMMENT
LOWserver/tests/scripts/test_restore_oneoff_grants.py939 # Step 1: FindCOMMENT
LOWserver/tests/scripts/test_restore_oneoff_grants.py944 # Step 2: RestoreCOMMENT
LOWserver/tests/scripts/test_restore_oneoff_grants.py953 # Step 3: Verify grantCOMMENT
LOWserver/tests/scripts/test_restore_oneoff_grants.py961 # Step 4: Verify license keyCOMMENT
LOWserver/tests/scripts/test_restore_oneoff_grants.py968 # Step 5: Running find again should return nothingCOMMENT
LOWserver/tests/customer_seat/test_service.py2832 # Step 1: Assign a seat to the email (this creates a member)COMMENT
LOWserver/tests/customer_seat/test_service.py2839 # Step 2: Revoke the seat (this clears member_id, customer_id, email from seat)COMMENT
LOWserver/tests/customer_seat/test_service.py2846 # Step 3: Soft delete the memberCOMMENT
LOWserver/tests/customer_seat/test_service.py2859 # Step 4: Try to assign a new seat to the same emailCOMMENT
LOWserver/scripts/migrate_organizations_members.py198 # Step 1: Enable member_model_enabledCOMMENT
LOWserver/scripts/migrate_organizations_members.py211 # Step 2: Run backfill steps directlyCOMMENT
LOWserver/scripts/tax_filing_imports.py234 # Step 1: Count rowsCOMMENT
LOWserver/scripts/tax_filing_imports.py240 # Step 2: Load CSVCOMMENT
LOWserver/scripts/tax_filing_imports.py247 # Step 3: Process batchesCOMMENT
Redundant / Tautological Comments37 hits · 55 pts
SeverityFileLineSnippetContext
LOWserver/polar/organization/tasks.py644 # Check if grant belongs to an old seat-holder customerCOMMENT
LOWserver/polar/organization/tasks.py818 # Check if customer has any subscriptionsCOMMENT
LOWserver/polar/organization/tasks.py830 # Check if customer has any ordersCOMMENT
LOWserver/polar/organization/endpoints.py561 # Check if user is already member of organizationCOMMENT
LOWserver/polar/organization/endpoints.py638 # Check if user is the only memberCOMMENT
LOWserver/polar/webhook/service.py398 # Check if all recent events are failuresCOMMENT
LOWserver/polar/member/service.py766 # Check if caller has permission to transfer ownershipCOMMENT
LOWserver/polar/oauth2/authorization_server.py90 # Check if this is a public client (token_endpoint_auth_method = none)COMMENT
LOWserver/polar/oauth2/authorization_server.py154 # Check if this is a public client (token_endpoint_auth_method = none)COMMENT
LOWserver/polar/oauth2/grants/authorization_code.py339 # 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.py648 # Check if user can be deletedCOMMENT
LOWserver/polar/backoffice/orders/endpoints.py781 # Check if order can be refundedCOMMENT
LOWserver/polar/backoffice/orders/endpoints.py970 # Check if order can be voidedCOMMENT
LOWserver/polar/cli/endpoints.py40 # Check if this is a webhook eventCOMMENT
LOWserver/polar/observability/utils.py15 # Check if app is excluded (e.g., backoffice)COMMENT
LOWserver/polar/observability/slo.py118 # Check if p99 exceeds target for any critical endpoint:STRING
LOWserver/polar/billing_entry/service.py232 # Check if this meter uses a non-summable aggregationCOMMENT
LOWserver/polar/worker/_debounce.py73 # Set TTL to avoid keys being stuck in RedisCOMMENT
LOWserver/polar/customer_seat/service.py1064 # Check if seat already assigned to this customerCOMMENT
LOWserver/polar/meter/service.py228 # Check if meter is attached to any active ProductPriceMeteredUnitCOMMENT
LOWserver/polar/meter/service.py252 # 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.py5872 # Set organization to use customer-based invoice numberingCOMMENT
LOWserver/tests/member/test_service.py367 # 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
LOW.github/workflows/link_pr_to_issue.yaml44 # Check if the fix reference already exists in the descriptionCOMMENT
LOW.github/workflows/e2e_flakiness_analysis.yaml206 # Check if Claude created a PR (flaky fix)COMMENT
LOWdev/docker/scripts/startup.sh203 # Check if any organizations exist to determine if seeds are neededCOMMENT
Over-Commented Block38 hits · 36 pts
SeverityFileLineSnippetContext
LOWterraform/scripts/plan-diff.sh1#!/usr/bin/env bashCOMMENT
LOWterraform/modules/s3_buckets/main.tf101 }COMMENT
LOWclients/examples/checkout-components/next-env.d.ts1/// <reference types="next" />COMMENT
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/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.py441 ) -> None: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/meter/test_service.py561 # Day 1: max(10, 20) = 20, Day 2: NULL (no events), Day 3: max(15, 5) = 15COMMENT
LOWserver/tests/event/test_service.py1981 # session: AsyncSession,COMMENT
LOWserver/tests/event/test_service.py2001COMMENT
LOWserver/tests/event/test_service.py2021 # )COMMENT
LOWserver/scripts/seeds_load.py1821 # },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.py81# a fixed base (env + server boot, both branches) plus per-URL. ONE shared,COMMENT
Verbosity Indicators16 hits · 33 pts
SeverityFileLineSnippetContext
LOWserver/polar/integrations/plain/service.py1348 # Step 1: Try read-only lookup by email (handles legacy customers)COMMENT
LOWserver/polar/integrations/plain/service.py1357 # Step 2: Not found by email - upsert with external_id as identifierCOMMENT
LOWserver/tests/scripts/test_restore_oneoff_grants.py939 # Step 1: FindCOMMENT
LOWserver/tests/scripts/test_restore_oneoff_grants.py944 # Step 2: RestoreCOMMENT
LOWserver/tests/scripts/test_restore_oneoff_grants.py953 # Step 3: Verify grantCOMMENT
LOWserver/tests/scripts/test_restore_oneoff_grants.py961 # Step 4: Verify license keyCOMMENT
LOWserver/tests/scripts/test_restore_oneoff_grants.py968 # Step 5: Running find again should return nothingCOMMENT
LOWserver/tests/customer_seat/test_service.py2832 # Step 1: Assign a seat to the email (this creates a member)COMMENT
LOWserver/tests/customer_seat/test_service.py2839 # Step 2: Revoke the seat (this clears member_id, customer_id, email from seat)COMMENT
LOWserver/tests/customer_seat/test_service.py2846 # Step 3: Soft delete the memberCOMMENT
LOWserver/tests/customer_seat/test_service.py2859 # Step 4: Try to assign a new seat to the same emailCOMMENT
LOWserver/scripts/migrate_organizations_members.py198 # Step 1: Enable member_model_enabledCOMMENT
LOWserver/scripts/migrate_organizations_members.py211 # Step 2: Run backfill steps directlyCOMMENT
LOWserver/scripts/tax_filing_imports.py234 # Step 1: Count rowsCOMMENT
LOWserver/scripts/tax_filing_imports.py240 # Step 2: Load CSVCOMMENT
LOWserver/scripts/tax_filing_imports.py247 # Step 3: Process batchesCOMMENT
AI Slop Vocabulary10 hits · 23 pts
SeverityFileLineSnippetContext
MEDIUMclients/apps/web/src/utils/getResizedImage.ts27 // in an SSR/email environment we do this for simplicity and to leverage caching.COMMENT
LOWserver/polar/organization/tasks.py508 # else: no customer and no email — just set customer_id belowCOMMENT
MEDIUMserver/polar/organization_review/analyzer.py700 # A product-change review is a comprehensive re-review of anCOMMENT
LOWserver/polar/event/service.py1017 # events whose root_id was just set because an ancestor arrived inCOMMENT
MEDIUMserver/tests/metrics/test_tinybird_metrics.py1585 # The harness commits shared seed data once for speed, so it can't use theCOMMENT
MEDIUMserver/tests/metrics/test_service.py2325 # 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.py106 # 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
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALserver/polar/customer/repository.py76 customer_id = Customer.__table__.c.id.default.arg(None)CODE
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMserver/polar/worker/_broker.py259 # Group completion callbacks for orchestrating task sequencesCOMMENT
MEDIUMserver/tests/order/test_service.py7190 # here we only assert finalize's orchestration drives it with a paidCOMMENT
Dead Code3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMserver/tests/merchant_migration/test_endpoints.py334CODE
MEDIUMserver/tests/merchant_migration/test_cutover.py89CODE
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.py178async def run_task(CODE