AI Slop Code RIsk Monitor

Zipstack/unstract

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

29.5 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for Zipstack/unstract, a Python project with 7,278 GitHub stars. SynthScan examined 390,530 lines of code across 2317 source files, recording 8553 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 29.5 (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.

29.5
Adjusted Signal
29.5
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
7.3K
Stars
Python
Language
390.5K
Lines of Code
2.3K
Files
8.6K
Pattern Hits
2026-10-12
Scan Date
0.14
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 58.6/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 10.4/100 · LOW

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

Agent Over-Engineering Ratio 66.8/100 · HIGH

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

PR Review Velocity Impact 76.6/100 · CRITICAL

Which changes need focused human review? 8553 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 23HIGH 294MEDIUM 551LOW 7685

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 8553 distinct pattern matches across 24 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

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

Hyper-Verbose Identifiers4688 hits · 4807 pts
SeverityFileLineSnippetContext
LOWtools/classifier/src/helper.py54 def copy_source_to_output_bin(CODE
LOW…end/src/components/ui/shims/shim-completeness.test.jsx50function collectSubComponentUsages() {CODE
LOW…d/src/components/custom-tools/pdf-viewer/PdfViewer.jsx89 function removeZerosAndDeleteIfAllZero(highlightData) {CODE
LOW…logs-and-notifications/DisplayLogsAndNotifications.jsx12export function DisplayLogsAndNotifications() {CODE
LOW…s/logs-and-notifications/LogsAndNotificationsTable.jsx10function LogsAndNotificationsTable({ errorCount, setErrorCount, isMinimized }) {CODE
LOW…src/components/input-output/file-system/FileSystem.jsx72 function getAndUpdateFiles(path) {CODE
LOW…deployments/api-deployment/ApiDeploymentCardConfig.jsx32function createApiDeploymentCardConfig({CODE
LOWfrontend/src/pages/UnstractAdministrationPage.jsx16function UnstractAdministrationPage() {CODE
LOWfrontend/src/pages/GlobalApiDeploymentKeysPage.jsx3function GlobalApiDeploymentKeysPage() {CODE
LOW⚡runner/tests/test_sidecar_log_transport.py53 def test_defaults_to_celery_when_unset(self, sidecar_env, monkeypatch):CODE
LOW⚡runner/tests/test_sidecar_log_transport.py60 def test_forwards_an_explicit_celery_transport(self, sidecar_env):CODE
LOW⚡runner/tests/test_sidecar_log_transport.py64 def test_forwards_redis_transport_to_the_sidecar(self, sidecar_env):CODE
LOW⚡runner/tests/test_sidecar_log_transport.py68 def test_forwards_the_stream_queue_name(self, sidecar_env):CODE
LOW⚡runner/tests/test_sidecar_log_transport.py74 def test_redis_credentials_are_already_present(self, sidecar_env):CODE
LOWrunner/tests/test_sidecar_log_transport.py85 def test_celery_broker_still_forwarded_for_the_flag_off_path(self, sidecar_env):CODE
LOWrunner/tests/test_sidecar_log_transport.py96 def test_unset_celery_broker_is_not_forwarded(self, sidecar_env, monkeypatch):CODE
LOWrunner/tests/test_sidecar_log_transport.py123 def test_tls_settings_are_forwarded(self, sidecar_env):CODE
LOWrunner/tests/test_sidecar_log_transport.py145 def test_unset_values_are_omitted_entirely(self, sidecar_env, monkeypatch):CODE
LOWrunner/tests/test_sidecar_log_transport.py170 def test_plaintext_deployment_is_unchanged(self, sidecar_env, monkeypatch):CODE
LOWrunner/src/unstract/runner/runner.py217 def _get_sidecar_container_config(CODE
LOWrunner/src/unstract/runner/runner.py376 def _handle_tool_execution_status(CODE
LOWrunner/src/unstract/runner/utils.py108 def get_sidecar_container_name(container_name: str) -> str:CODE
LOWrunner/src/unstract/runner/clients/interface.py59 def run_container_with_sidecar(CODE
LOWrunner/src/unstract/runner/clients/docker_client.py299 def run_container_with_sidecar(CODE
LOWrunner/src/unstract/runner/clients/test_docker.py37def docker_client_with_sidecar(mocker):CODE
LOWrunner/src/unstract/runner/clients/test_docker.py132def test_get_container_run_config(docker_client, mocker):CODE
LOWrunner/src/unstract/runner/clients/test_docker.py163def test_get_container_run_config_without_mount(docker_client, mocker):CODE
LOWrunner/src/unstract/runner/clients/test_docker.py216def test_get_image_for_sidecar(docker_client_with_sidecar, mocker):CODE
LOWtests/rig/groups.py314def _validate_dep_targets_exist(groups: dict[str, GroupDefinition]) -> None:CODE
LOWtests/rig/groups.py335def _validate_platform_groups_depend_on_gate(CODE
LOWtests/rig/critical_paths.py112def validate_registry_against_manifest(CODE
LOWtests/rig/cli.py788def _db_env_from_postgres_url(url: str) -> dict[str, str]:CODE
LOWtests/rig/cli.py848def _coverage_attesting_groups(results: list[GroupResult]) -> set[str]:CODE
LOWtests/rig/cli.py1059def _write_synthetic_junit_safe(path: Path, group_name: str, exit_code: int) -> None:CODE
LOWtests/rig/cli.py1097def _resolve_pytest_configfile(workdir: Path) -> Path | None:CODE
LOWtests/rig/selection.py84def _groups_for_changed_paths(manifest: GroupManifest, *, base: str) -> set[str]:CODE
LOWtests/rig/pytest_plugin/rig_critical_path.py25def pytest_collection_modifyitems(items):CODE
LOWtests/rig/tests/test_coverage.py47def test_combine_preserves_prior_tier_data(tmp_path: Path) -> None:CODE
LOWtests/rig/tests/test_coverage.py78def test_combine_unions_same_file_across_tiers(tmp_path: Path) -> None:CODE
LOWtests/rig/tests/test_coverage.py95def test_combine_no_files_is_noop(tmp_path: Path) -> None:CODE
LOWtests/rig/tests/test_coverage.py107def test_combine_idempotent_with_only_prior_data(tmp_path: Path) -> None:CODE
LOWtests/rig/tests/test_coverage.py128def test_combine_swallows_rename_oserror(CODE
LOWtests/rig/tests/test_reporting.py16def test_parse_testsuites_wrapper_sums_across_suites(tmp_path: Path) -> None:CODE
LOWtests/rig/tests/test_reporting.py38def test_parse_single_testsuite_root(tmp_path: Path) -> None:CODE
LOWtests/rig/tests/test_reporting.py69def test_missing_counters_flagged_as_error(tmp_path: Path) -> None:CODE
LOW⚡tests/rig/tests/test_reporting.py84def test_malformed_xml_returns_error_result(tmp_path: Path) -> None:CODE
LOW⚡tests/rig/tests/test_reporting.py91def test_missing_junit_returns_none(tmp_path: Path) -> None:CODE
LOW⚡tests/rig/tests/test_reporting.py100def test_status_icon_round_trips() -> None:CODE
LOW⚡tests/rig/tests/test_reporting.py109def test_blocked_result_is_never_green() -> None:CODE
LOW⚡tests/rig/tests/test_reporting.py117def test_blocked_result_rejects_nonzero_counters() -> None:CODE
LOW⚡tests/rig/tests/test_reporting.py124def test_blocked_junit_round_trips_through_parse(tmp_path: Path) -> None:CODE
LOWtests/rig/tests/test_reporting.py140def test_passed_critical_path_ids_collects_only_passing_marked_tests(CODE
LOWtests/rig/tests/test_reporting.py172def test_passed_critical_path_ids_missing_or_malformed_junit(tmp_path: Path) -> None:CODE
LOW⚡tests/rig/tests/test_runtime.py18def test_infra_endpoints_rejects_partial_redis_pair() -> None:CODE
LOW⚡tests/rig/tests/test_runtime.py28def test_infra_endpoints_rejects_partial_rabbitmq_pair() -> None:CODE
LOW⚡tests/rig/tests/test_runtime.py35def test_infra_endpoints_allows_fully_specified_pairs() -> None:CODE
LOWtests/rig/tests/test_runtime.py47def test_infra_endpoints_allows_all_none() -> None:CODE
LOWtests/rig/tests/test_runtime.py52def test_platform_endpoints_from_env_uses_defaults(monkeypatch) -> None:CODE
LOW⚡tests/rig/tests/test_runtime.py76def test_extra_compose_files_empty_when_unset(monkeypatch) -> None:CODE
LOW⚡tests/rig/tests/test_runtime.py81def test_extra_compose_files_reads_existing_paths(monkeypatch, tmp_path) -> None:CODE
4628 more matches not shown…
Decorative Section Separators374 hits · 1401 pts
SeverityFileLineSnippetContext
MEDIUMtox.ini81# ── Legacy aliases ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/groups.yaml48 # ── Unit tier: pure pytest, no external services ───────────────────────────COMMENT
MEDIUMtests/groups.yaml155 # ── Integration tier: needs infra but not full platform ────────────────────COMMENT
MEDIUMtests/groups.yaml201 # ── E2E tier: real HTTP against running platform ───────────────────────────COMMENT
MEDIUMtests/rig/cli.py226# ── subcommands ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/rig/cli.py770# ── execution helpers ─────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/rig/tests/test_runtime.py70# ── Injection seams: extra compose overlays + pluggable login provider ───────COMMENT
MEDIUM⚡.claude/skills/worktree/worktree-setup.sh105# ============================================================COMMENT
MEDIUM⚡.claude/skills/worktree/worktree-setup.sh107# ============================================================COMMENT
MEDIUM⚡.claude/skills/worktree/worktree-setup.sh158# ============================================================COMMENT
MEDIUM⚡.claude/skills/worktree/worktree-setup.sh160# ============================================================COMMENT
MEDIUM⚡backend/workflow_manager/workflow_v2/views.py657# =============================================================================COMMENT
MEDIUM⚡backend/workflow_manager/workflow_v2/views.py659# =============================================================================COMMENT
MEDIUMbackend/workflow_manager/workflow_v2/views.py394# =============================================================================COMMENT
MEDIUMbackend/workflow_manager/workflow_v2/views.py396# =============================================================================COMMENT
MEDIUMbackend/tenant_account_v2/sharing_helpers.py355# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/tenant_account_v2/sharing_helpers.py357# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/scheduler/tasks.py21# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/scheduler/tasks.py34# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/backend/internal_base_urls.py185 # ========================================COMMENT
MEDIUMbackend/backend/internal_base_urls.py187 # ========================================COMMENT
MEDIUM…t_studio/prompt_studio_core_v2/prompt_studio_helper.py534 # ------------------------------------------------------------------COMMENT
MEDIUM…t_studio/prompt_studio_core_v2/prompt_studio_helper.py536 # ------------------------------------------------------------------COMMENT
MEDIUMbackend/usage_v2/tests/test_helper.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/usage_v2/tests/test_helper.py40# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡backend/usage_v2/tests/test_helper.py89# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡backend/usage_v2/tests/test_helper.py91# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/dashboard_metrics/cache.py133# =============================================================================COMMENT
MEDIUMbackend/dashboard_metrics/cache.py135# =============================================================================COMMENT
MEDIUMworkers/run-worker.sh2# =============================================================================COMMENT
MEDIUMworkers/run-worker.sh4# =============================================================================COMMENT
MEDIUMworkers/run-worker-docker.sh2# =============================================================================COMMENT
MEDIUMworkers/run-worker-docker.sh4# =============================================================================COMMENT
MEDIUMworkers/run-worker-docker.sh377 # =============================================================================COMMENT
MEDIUMworkers/run-worker-docker.sh379 # =============================================================================COMMENT
MEDIUMworkers/run-worker-docker.sh494# =============================================================================COMMENT
MEDIUMworkers/run-worker-docker.sh496# =============================================================================COMMENT
MEDIUMworkers/run-worker-docker.sh604 # =============================================================================COMMENT
MEDIUMworkers/run-worker-docker.sh606 # =============================================================================COMMENT
MEDIUMworkers/run-worker-docker.sh679 # =============================================================================COMMENT
MEDIUMworkers/run-worker-docker.sh681 # =============================================================================COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py51# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py54# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py107# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py109# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py271# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py273# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py656# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py658# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/tests/test_line_item_extraction.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMworkers/tests/test_line_item_extraction.py28# ---------------------------------------------------------------------------COMMENT
MEDIUMworkers/tests/test_line_item_extraction.py132# ---------------------------------------------------------------------------COMMENT
MEDIUMworkers/tests/test_line_item_extraction.py134# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡workers/tests/test_line_item_extraction.py173# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡workers/tests/test_line_item_extraction.py175# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡workers/tests/test_line_item_extraction.py200# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡workers/tests/test_line_item_extraction.py202# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡workers/tests/test_line_item_extraction.py293# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡workers/tests/test_line_item_extraction.py295# ---------------------------------------------------------------------------COMMENT
MEDIUMworkers/tests/test_line_item_extraction.py330# ---------------------------------------------------------------------------COMMENT
314 more matches not shown…
Excessive Try-Catch Wrapping1145 hits · 1073 pts
SeverityFileLineSnippetContext
LOWtools/text_extractor/src/main.py89 except Exception as e:CODE
LOWtools/classifier/src/helper.py76 except Exception as e:CODE
LOWtools/classifier/src/helper.py103 except Exception as e:CODE
LOWtools/classifier/src/helper.py152 except Exception as e:CODE
LOWtools/classifier/src/helper.py169 except Exception as e:CODE
LOWtools/classifier/src/helper.py216 except Exception as e:CODE
LOWrunner/src/unstract/runner/runner.py211 except Exception as e:CODE
LOWrunner/src/unstract/runner/runner.py330 except Exception as e:CODE
LOWrunner/src/unstract/runner/runner.py414 except Exception as e:CODE
LOWrunner/src/unstract/runner/runner.py548 except Exception as e:CODE
LOWrunner/src/unstract/runner/runner.py604 except Exception as e:CODE
LOWrunner/src/unstract/runner/clients/docker_client.py59 except Exception as remove_error:CODE
LOWrunner/src/unstract/runner/clients/docker_client.py122 except Exception as exc:CODE
LOWrunner/src/unstract/runner/clients/docker_client.py156 except Exception as e:CODE
LOWrunner/src/unstract/runner/clients/docker_client.py360 except Exception as e:CODE
LOWrunner/src/unstract/runner/clients/docker_client.py386 except Exception as e:CODE
LOWrunner/src/unstract/runner/clients/docker_client.py403 except Exception as e:CODE
LOWtests/rig/runtime.py370 except Exception:CODE
LOWtests/rig/runtime.py382 except Exception as exc:CODE
MEDIUMtests/rig/runtime.py237def _remove_project_volumes(self) -> None:CODE
LOWtests/rig/cli.py328 except Exception:CODE
LOWtests/rig/cli.py664 except Exception as exc:CODE
LOWtests/e2e/etl/conftest.py81 except Exception as exc: # noqa: BLE001 - narrow verdict belowCODE
LOW…/skills/connector-ops/references/connector_patterns.md140 except Exception as e:CODE
LOW…/skills/connector-ops/references/connector_patterns.md237 except Exception:CODE
MEDIUM…/skills/connector-ops/references/connector_patterns.md122def test_credentials(self) -> bool:CODE
MEDIUM…/skills/connector-ops/references/connector_patterns.md233def exists(self, path, **kwargs):CODE
LOW⚡…laude/skills/connector-ops/scripts/verify_connector.py134 except Exception as e:CODE
LOW⚡…laude/skills/connector-ops/scripts/verify_connector.py137 except Exception as e:CODE
LOW…laude/skills/connector-ops/scripts/verify_connector.py172 except Exception as e:CODE
LOW.claude/skills/adapter-ops/SKILL.md332 except Exception as e:CODE
LOW…aude/skills/adapter-ops/references/adapter_patterns.md631 except Exception:CODE
LOW…e/skills/adapter-ops/scripts/init_embedding_adapter.py337 except Exception as e:STRING
LOW…e/skills/adapter-ops/scripts/init_embedding_adapter.py411 except Exception:STRING
MEDIUM.claude/skills/adapter-ops/scripts/manage_models.py208 print(f"Error: Schema file not found: {schema_path}")CODE
MEDIUM⚡.claude/skills/adapter-ops/scripts/manage_models.py231 print("Error: --models required for add-enum action")CODE
MEDIUM⚡.claude/skills/adapter-ops/scripts/manage_models.py239 print("Error: --models required for remove-enum action")CODE
MEDIUM⚡.claude/skills/adapter-ops/scripts/manage_models.py247 print("Error: --models required for set-default action (single model)")CODE
MEDIUM⚡.claude/skills/adapter-ops/scripts/manage_models.py255 print("Error: --description required for update-description action")CODE
LOW.claude/skills/adapter-ops/scripts/init_llm_adapter.py347 except Exception as e:STRING
LOW.claude/skills/adapter-ops/scripts/init_llm_adapter.py421 except Exception:STRING
LOW.claude/skills/csp-check/scripts/scan_origins.py120 except Exception: # noqa: BLE001 - retry, then let the caller record itCODE
LOW.claude/skills/csp-check/scripts/scan_origins.py134 except Exception as exc: # noqa: BLE001 - report it as an incomplete scan, not a tracebackCODE
LOW.claude/skills/csp-check/scripts/scan_origins.py168 except Exception as exc: # noqa: BLE001 - keep scanning, but record the gapCODE
LOWbackend/workflow_manager/internal_serializers.py80 except Exception as e:CODE
LOWbackend/workflow_manager/internal_api_views.py89 except Exception as e:CODE
LOWbackend/workflow_manager/internal_api_views.py148 except Exception as e:CODE
LOWbackend/workflow_manager/internal_api_views.py182 except Exception as e:CODE
LOWbackend/workflow_manager/internal_api_views.py222 except Exception as e:CODE
LOWbackend/workflow_manager/internal_api_views.py259 except Exception as e:CODE
LOWbackend/workflow_manager/internal_api_views.py336 except Exception as e:CODE
LOWbackend/workflow_manager/internal_api_views.py376 except Exception as e:CODE
LOWbackend/workflow_manager/internal_views.py103 except Exception as e:CODE
LOWbackend/workflow_manager/internal_views.py171 except Exception:CODE
LOWbackend/workflow_manager/internal_views.py196 except Exception as e:CODE
LOWbackend/workflow_manager/internal_views.py299 except Exception as source_error:CODE
LOWbackend/workflow_manager/internal_views.py326 except Exception as e:CODE
LOWbackend/workflow_manager/internal_views.py419 except Exception as endpoint_error:CODE
LOWbackend/workflow_manager/internal_views.py450 except Exception as source_error:CODE
LOWbackend/workflow_manager/internal_views.py479 except Exception as e:CODE
1085 more matches not shown…
Docstring Block Structure125 hits · 625 pts
SeverityFileLineSnippetContext
HIGHtools/text_extractor/src/main.py32Run the text extraction process. Args: settings (dict[str, Any]): The settings for the tool. STRING
HIGHbackend/workflow_manager/endpoint_v2/queue_utils.py78Get HITL-specific queue connector instance with dynamic imports. This method uses dynamic imports to avoid hardSTRING
HIGHbackend/workflow_manager/endpoint_v2/queue_utils.py137Get HITL connector class from registry (lazy-loaded to avoid circular imports). Args: connector_namSTRING
HIGHbackend/workflow_manager/endpoint_v2/destination.py1118Read and encode file content for queue message. Args: input_file_path: Path to the file to read STRING
HIGHbackend/workflow_manager/endpoint_v2/base_connector.py33Get an fsspec file system based on the specified connector. Parameters: - settings (dict): Connector-spSTRING
HIGHbackend/workflow_manager/endpoint_v2/base_connector.py68Load and return a JSON schema from the specified file path. Parameters: - file_path (str): The path to STRING
HIGHbackend/workflow_manager/endpoint_v2/database_utils.py46Function to return connector db column and types by calling connector table information schema. Args: STRING
HIGHbackend/workflow_manager/endpoint_v2/database_utils.py314Migrate table to v2 by adding _v2 columns. Args: db_class (UnstractDB): DB Connection class STRING
HIGHbackend/workflow_manager/endpoint_v2/source.py967Add input file to execution directory. Args: file_hash (FileHash): The file hash object. RSTRING
HIGHbackend/workflow_manager/endpoint_v2/source.py1113Add input file to execution directory. Args: workflow_file_execution: WorkflowFileExecution model STRING
HIGHbackend/workflow_manager/endpoint_v2/source.py1168Load file contnt and file name based on the file path. Args: input_file_path (str): source file STRING
HIGHbackend/workflow_manager/workflow_v2/workflow_helper.py404Get celery task status. Args: execution_id (str): workflow execution id Raises: STRING
HIGHbackend/workflow_manager/workflow_v2/workflow_helper.py1203Validates the given args for reading the JSON schema. Schema type of `src`, allows entities `file` and `api` STRING
HIGHbackend/workflow_manager/workflow_v2/execution.py346Initiates the execution of a tool for a specific file in the workflow. Args: current_file_iSTRING
HIGH…end/workflow_manager/workflow_v2/file_history_views.py39Validate execution count parameter is a non-negative integer. Args: value: The value to validate STRING
HIGHbackend/workflow_manager/workflow_v2/views.py227Retrieve workflow by workflow id. Args: workflow_id (Optional[str], optional): workflow Id. STRING
HIGHbackend/configuration/config_registry.py142Cast a raw value to the appropriate type for a config key. Args: key_name: Name of the configuratioSTRING
HIGHbackend/utils/organization_utils.py17Resolve organization by either organization.id (int) or organization.organization_id (string). Args: org_idSTRING
HIGHbackend/utils/date/processor.py34Converts various datetime string formats to ISO 8601 format. Args: date_input: A string representinSTRING
HIGHbackend/utils/date/processor.py58Parses and converts date parameters to datetime objects. Args: date_param: Date parameter that can STRING
HIGHbackend/utils/date/processor.py82Processes and validates start and end dates with smart defaults. Logic: 1. If no end_date: use current STRING
HIGHbackend/pipeline_v2/serializers/crud.py204Validate the cron string provided in the serializer data. This method is called internally by the serializer toSTRING
HIGHbackend/platform_settings_v2/platform_auth_service.py34Method to support generation of new platform key. Throws error when maximum count is exceeded. Forbids for user STRING
HIGHbackend/api_v2/serializers.py410Validate presigned URL for security and compatibility. Args: url (str): The presigned URL to validaSTRING
HIGHbackend/api_v2/api_key_validator.py25Wrapper to validate the inputs and key. Args: request (Request): Request context STRING
HIGHbackend/api_v2/key_helper.py71Validate a Global API Deployment Key for deployment execution. Checks: 1. Key exists and is active STRING
HIGHbackend/api_v2/deployment_helper.py80Validate API deployment and API key. Tries deployment-specific key first. If that fails, falls back to STRING
HIGHbackend/api_v2/deployment_helper.py561Fetch a file from a presigned URL and convert it to an uploaded file. Args: url (str): The presigneSTRING
HIGH…t_studio/prompt_studio_core_v2/prompt_studio_helper.py1760Execute chain/single run of the prompts. Makes a call to prompt service and returns the dict of response. STRING
HIGH…t_studio/prompt_studio_core_v2/prompt_studio_helper.py2096Utility function to invoke prompt service. Used internally. Args: tool (CustomTool): CustomTool insSTRING
HIGHbackend/prompt_studio/prompt_studio_core_v2/views.py433API Entry point method to index input file. Builds the full execution payload (ORM work), then fires a STRING
HIGH…pt_studio_registry_v2/prompt_studio_registry_helper.py231Updates or creates the PromptStudioRegistry record. This appears as a separate tool in the workflow and is mappSTRING
HIGHbackend/connector_processor/connector_processor.py175Validate the connector mode. Parameters: - connector_mode (str): The connector mode to validate. STRING
HIGHbackend/usage_v2/helper.py56Retrieve aggregated token counts for the given run_id. Args: run_id (str): The identifier for the tSTRING
HIGHbackend/connector_auth_v2/pipeline/common.py17Checks if user is authenticated (will be handled in auth middleware, present as a fail safe) Args: userSTRING
HIGHbackend/adapter_processor_v2/adapter_processor.py99Generic Function to get adapter data with provided key. Args: adapter_id: The SDK identifier for thSTRING
HIGHbackend/adapter_processor_v2/adapter_processor.py287Get the adapter instance by its name and type. Parameters: - adapter_name (str): The name of the adapteSTRING
HIGHbackend/account_v2/authentication_service.py42Authenticate and log in a user. Args: request (Request): The HTTP request object. Returns:STRING
HIGHbackend/account_v2/authentication_service.py125Validate the login credentials. Args: request (Request): The HTTP request object. Returns:STRING
HIGHbackend/dashboard_metrics/tasks.py582Aggregate source tables into the hourly, daily and monthly tiers. Three schedules call this: the hourly tier every STRING
HIGHworkers/notification/tasks.py84Universal notification processor. This task routes notifications to the appropriate provider based on type. It STRING
HIGHworkers/notification/tasks.py252Backward compatible webhook notification task. This task maintains 100% compatibility with the existing backend STRING
HIGHworkers/notification/providers/base_provider.py30Send notification using this provider. Args: notification_data: Dictionary containing all necessarySTRING
HIGHworkers/notification/providers/base_provider.py53Validate notification data before attempting to send. Args: notification_data: Dictionary containinSTRING
HIGHworkers/notification/providers/webhook_provider.py40Validate webhook notification data. Args: notification_data: Webhook notification data containing: STRING
HIGHworkers/notification/providers/webhook_provider.py88Send webhook notification. This method replicates the exact behavior of the current backend send_webhooSTRING
HIGHworkers/notification/providers/registry.py41Get notification provider class based on type and platform. Args: notification_type: Type of notification (STRING
HIGHworkers/notification/providers/registry.py72Create and instantiate a notification provider. Args: notification_type: Type of notification platfSTRING
HIGHworkers/notification/providers/registry.py89Create provider instance from notification configuration. Args: notification_config: Notification config frSTRING
HIGHworkers/file_processing/tasks.py439Validate and parse input data into typed dataclass. Args: file_batch_data: Raw input dictionary ReturnSTRING
HIGHworkers/file_processing/tasks.py474Setup execution context with validation and API client initialization. Args: batch_data: Validated batch daSTRING
HIGHworkers/shared/worker_builder.py37Build a configured Celery app for the specified worker type. Args: worker_type: Type of worker to bSTRING
HIGHworkers/shared/worker_registry.py197Get queue configuration for a worker type. Args: worker_type: Type of worker Returns: STRING
HIGHworkers/shared/worker_registry.py214Get task routing configuration for a worker type. Args: worker_type: Type of worker ReturnSTRING
HIGHworkers/shared/clients/base_client.py248Enhanced HTTP request with robust error handling and retry logic. Args: method: HTTP method (GET, PSTRING
HIGHworkers/shared/clients/file_client.py625Get file history using flexible parameters (cache_key OR provider_file_uuid). Args: workflow_id: WoSTRING
HIGHworkers/shared/clients/file_client.py662Get file history for multiple files in a single batch operation. Args: workflow_id: Workflow ID STRING
HIGHworkers/shared/cache/cache_types.py107Validate and convert string to CacheType enum. Args: cache_type: String representation of cache type RSTRING
HIGHworkers/shared/patterns/retry/backoff.py299Execute function with smart retry logic. Args: func: Function to execute operation_id: STRING
HIGHworkers/shared/patterns/retry/utils.py70Execute function with retry logic. Args: func: Function to execute *args: Function arguSTRING
65 more matches not shown…
Unused Imports579 hits · 554 pts
SeverityFileLineSnippetContext
LOWrunner/tests/test_sidecar_log_transport.py15CODE
LOWrunner/src/unstract/runner/__init__.py9CODE
LOWrunner/src/unstract/runner/clients/interface.py1CODE
LOWtests/conftest.py7CODE
LOWtests/rig/__init__.py7CODE
LOWtests/rig/__init__.py7CODE
LOWtests/rig/__init__.py7CODE
LOWtests/rig/__init__.py12CODE
LOWtests/rig/__init__.py12CODE
LOWtests/rig/__init__.py12CODE
LOWtests/rig/coverage.py8CODE
LOWtests/rig/groups.py9CODE
LOWtests/rig/runtime.py19CODE
LOWtests/rig/critical_paths.py3CODE
LOWtests/rig/cli.py13CODE
LOWtests/rig/selection.py15CODE
LOWtests/rig/reporting.py15CODE
LOWtests/rig/tests/test_coverage.py12CODE
LOWtests/rig/tests/test_reporting.py3CODE
LOWtests/rig/tests/test_runtime.py8CODE
LOWtests/rig/tests/test_critical_paths.py3CODE
LOWtests/rig/tests/test_selection.py3CODE
LOWtests/rig/tests/test_cli.py15CODE
LOWtests/rig/tests/test_groups.py3CODE
LOWtests/e2e/conftest.py9CODE
LOWtests/e2e/smoke/test_smoke.py8CODE
LOWtests/e2e/coowners/test_coowner_management.py13CODE
LOWtests/e2e/auth/test_login.py7CODE
LOWtests/e2e/etl/conftest.py8CODE
LOWtests/e2e/etl/test_pipeline_etl_execute.py8CODE
LOWtests/e2e/workflows/test_workflow_execute.py12CODE
LOWtests/e2e/api_deployment/conftest.py3CODE
LOWtests/e2e/api_deployment/test_api_deployment_run.py8CODE
LOWtests/e2e/api_deployment/test_api_deployment_async.py9CODE
LOWtests/e2e/api_deployment/test_api_deployment_fan_out.py14CODE
LOW…e2e/prompt_studio/test_prompt_studio_fetch_response.py8CODE
LOW…er/file_execution/tests/test_index_migration_guards.py20CODE
LOW…er/file_execution/tests/test_wfe_status_created_idx.py16CODE
LOW…execution/tests/test_wfe_status_created_idx_planner.py28CODE
LOW…kend/workflow_manager/execution/serializer/__init__.py1CODE
LOW…w_manager/execution/tests/test_execution_serializer.py14CODE
LOWbackend/workflow_manager/execution/views/__init__.py1CODE
LOW…er/endpoint_v2/tests/test_queue_result_execution_id.py10CODE
LOWbackend/workflow_manager/endpoint_v2/tests/__init__.py1CODE
LOW…ager/endpoint_v2/tests/test_database_utils/__init__.py1CODE
LOWbackend/workflow_manager/workflow_v2/enums.py1CODE
LOW…end/workflow_manager/workflow_v2/undispatched_sweep.py41CODE
LOWbackend/workflow_manager/workflow_v2/dto.py1CODE
LOW…ckend/workflow_manager/workflow_v2/filters/__init__.py1CODE
LOW…nager/workflow_v2/tests/test_active_execution_index.py12CODE
LOW…workflow_v2/tests/test_undispatched_execution_index.py17CODE
LOW…flow_manager/workflow_v2/tests/test_workflow_author.py11CODE
LOW…w_manager/workflow_v2/tests/test_undispatched_sweep.py13CODE
LOW…ow_manager/workflow_v2/tests/test_we_created_at_idx.py13CODE
LOWbackend/workflow_manager/workflow_v2/models/__init__.py4CODE
LOWbackend/workflow_manager/workflow_v2/models/__init__.py5CODE
LOWbackend/workflow_manager/workflow_v2/models/__init__.py6CODE
LOWbackend/workflow_manager/workflow_v2/models/__init__.py7CODE
LOWbackend/tests_common/source_extraction.py29CODE
LOWbackend/tests_common/test_route_wiring.py24CODE
519 more matches not shown…
Cross-File Repetition110 hits · 550 pts
SeverityFileLineSnippetContext
HIGH…tion-connectors/test_destination_connector_bigquery.py0verify that all expected columns exist in the table with correct types.STRING
HIGH…ation-connectors/test_destination_connector_mariadb.py0verify that all expected columns exist in the table with correct types.STRING
HIGH…ination-connectors/test_destination_connector_mysql.py0verify that all expected columns exist in the table with correct types.STRING
HIGH…tion-connectors/test_destination_connector_postgres.py0verify that all expected columns exist in the table with correct types.STRING
HIGH…tion-connectors/test_destination_connector_bigquery.py0create a mock endpoint with real database configuration.STRING
HIGH…ation-connectors/test_destination_connector_mariadb.py0create a mock endpoint with real database configuration.STRING
HIGH…ion-connectors/test_destination_connector_snowflake.py0create a mock endpoint with real database configuration.STRING
HIGH…ination-connectors/test_destination_connector_mssql.py0create a mock endpoint with real database configuration.STRING
HIGH…nation-connectors/test_destination_connector_oracle.py0create a mock endpoint with real database configuration.STRING
HIGH…tion-connectors/test_destination_connector_redshift.py0create a mock endpoint with real database configuration.STRING
HIGH…ination-connectors/test_destination_connector_mysql.py0create a mock endpoint with real database configuration.STRING
HIGH…tion-connectors/test_destination_connector_postgres.py0create a mock endpoint with real database configuration.STRING
HIGH…tion-connectors/test_destination_connector_bigquery.py0create a destination connector with mocked django dependencies but real db.STRING
HIGH…ation-connectors/test_destination_connector_mariadb.py0create a destination connector with mocked django dependencies but real db.STRING
HIGH…ion-connectors/test_destination_connector_snowflake.py0create a destination connector with mocked django dependencies but real db.STRING
HIGH…ination-connectors/test_destination_connector_mssql.py0create a destination connector with mocked django dependencies but real db.STRING
HIGH…nation-connectors/test_destination_connector_oracle.py0create a destination connector with mocked django dependencies but real db.STRING
HIGH…tion-connectors/test_destination_connector_redshift.py0create a destination connector with mocked django dependencies but real db.STRING
HIGH…ination-connectors/test_destination_connector_mysql.py0create a destination connector with mocked django dependencies but real db.STRING
HIGH…tion-connectors/test_destination_connector_postgres.py0create a destination connector with mocked django dependencies but real db.STRING
HIGH…ation-connectors/test_destination_connector_mariadb.py0test that data is properly inserted into all columns with correct values.STRING
HIGH…ination-connectors/test_destination_connector_mysql.py0test that data is properly inserted into all columns with correct values.STRING
HIGH…tion-connectors/test_destination_connector_postgres.py0test that data is properly inserted into all columns with correct values.STRING
HIGH…ion-connectors/test_destination_connector_snowflake.py0verify that the table has expected columns with correct data types.STRING
HIGH…ination-connectors/test_destination_connector_mssql.py0verify that the table has expected columns with correct data types.STRING
HIGH…nation-connectors/test_destination_connector_oracle.py0verify that the table has expected columns with correct data types.STRING
HIGH…tion-connectors/test_destination_connector_redshift.py0verify that the table has expected columns with correct data types.STRING
HIGHbackend/workflow_manager/workflow_v2/views.py0email users newly added to ``shared_users`` (best-effort).STRING
HIGHbackend/connector_v2/views.py0email users newly added to ``shared_users`` (best-effort).STRING
HIGHbackend/api_v2/api_deployment_views.py0email users newly added to ``shared_users`` (best-effort).STRING
HIGHbackend/prompt_studio/prompt_studio_core_v2/views.py0email users newly added to ``shared_users`` (best-effort).STRING
HIGHbackend/adapter_processor_v2/views.py0email users newly added to ``shared_users`` (best-effort).STRING
HIGHbackend/workflow_manager/workflow_v2/models/workflow.py0filter api deployments that the user can access: - api deployments created by the user - api deployments shared with theSTRING
HIGHbackend/pipeline_v2/models.py0filter api deployments that the user can access: - api deployments created by the user - api deployments shared with theSTRING
HIGHbackend/api_v2/models.py0filter api deployments that the user can access: - api deployments created by the user - api deployments shared with theSTRING
HIGHbackend/tool_instance_v2/serializers.py0refuse reparenting: the gate authorises against the stored parent.STRING
HIGHbackend/pipeline_v2/serializers/crud.py0refuse reparenting: the gate authorises against the stored parent.STRING
HIGHbackend/api_v2/serializers.py0refuse reparenting: the gate authorises against the stored parent.STRING
HIGH…prompt_studio/prompt_profile_manager_v2/serializers.py0refuse reparenting: the gate authorises against the stored parent.STRING
HIGHbackend/prompt_studio/prompt_studio_v2/serializers.py0refuse reparenting: the gate authorises against the stored parent.STRING
HIGHbackend/backend/urls_v2.py0url configuration for backend project. the `urlpatterns` list routes urls to views. for more information please see: httSTRING
HIGHbackend/backend/public_urls_v2.py0url configuration for backend project. the `urlpatterns` list routes urls to views. for more information please see: httSTRING
HIGHbackend/backend/public_urls.py0url configuration for backend project. the `urlpatterns` list routes urls to views. for more information please see: httSTRING
HIGHbackend/backend/urls.py0url configuration for backend project. the `urlpatterns` list routes urls to views. for more information please see: httSTRING
HIGHbackend/backend/settings/base.py0get the value of an environment variable specified by the given key. add missing keys to `missing_settings` so that exceSTRING
HIGHplatform-service/src/unstract/platform_service/utils.py0get the value of an environment variable specified by the given key. add missing keys to `missing_settings` so that exceSTRING
HIGHx2text-service/app/env.py0get the value of an environment variable specified by the given key. add missing keys to `missing_settings` so that exceSTRING
HIGHworkers/queue_backend/pg_barrier.py0yield a cursor; commit on success, roll back + recover on error.STRING
HIGHworkers/queue_backend/pg_queue/leader_election.py0yield a cursor; commit on success, roll back + recover on error.STRING
HIGHworkers/queue_backend/pg_queue/result_backend.py0yield a cursor; commit on success, roll back + recover on error.STRING
HIGHworkers/tests/test_line_item_extraction.py0configure executor celery app for eager-mode testing.STRING
HIGHworkers/tests/test_prompt_studio_dispatch.py0configure executor celery app for eager-mode testing.STRING
HIGHworkers/tests/test_dispatch_with_callback.py0configure executor celery app for eager-mode testing.STRING
HIGHworkers/tests/test_summarize_operation.py0configure executor celery app for eager-mode testing.STRING
HIGHworkers/tests/test_plugin_migration_regression.py0configure executor celery app for eager-mode testing.STRING
HIGHworkers/tests/test_legacy_executor_scaffold.py0configure the real executor celery app for eager-mode testing.STRING
HIGHworkers/tests/test_extraction_pipeline_contracts.py0configure the real executor celery app for eager-mode testing.STRING
HIGHworkers/tests/test_executor_sanity.py0configure the real executor celery app for eager-mode testing.STRING
HIGHworkers/tests/test_legacy_executor_extract.py0configure the real executor celery app for eager-mode testing.STRING
HIGHworkers/tests/test_prompt_studio_dispatch.py0run execute_extraction task via task.apply() (eager-safe).STRING
50 more matches not shown…
Modern Structural Boilerplate497 hits · 502 pts
SeverityFileLineSnippetContext
LOWrunner/src/unstract/runner/__init__.py29__all__ = ["UnstractRunner"]CODE
LOWrunner/src/unstract/runner/utils.py12logger = logging.getLogger(__name__)CODE
LOWrunner/src/unstract/runner/clients/helper.py7logger = logging.getLogger(__name__)CODE
LOW⚡runner/src/unstract/runner/controller/health.py5logger = logging.getLogger(__name__)CODE
LOWtests/rig/__init__.py14__all__ = [CODE
LOWbackend/workflow_manager/internal_serializers.py19logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/internal_api_views.py25logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/internal_views.py42logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/internal_views.py936 def _update_file_aggregates(execution, validated_data) -> None:CODE
LOWbackend/workflow_manager/utils/pipeline_utils.py10logger = logging.getLogger(__name__)CODE
LOW…kend/workflow_manager/file_execution/internal_views.py24logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/execution/access.py14logger = logging.getLogger(__name__)CODE
LOW…end/workflow_manager/execution/serializer/execution.py8logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/execution/views/execution.py13logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/endpoint_v2/queue_utils.py14logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/endpoint_v2/destination.py44logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/endpoint_v2/serializers.py12logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/endpoint_v2/constants.py7logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/endpoint_v2/database_utils.py17logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/endpoint_v2/source.py53logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/endpoint_v2/tests/__init__.py3__all__ = ["celery_app"]CODE
LOW…ager/endpoint_v2/tests/test_database_utils/__init__.py3__all__ = ["celery_app"]CODE
LOWbackend/workflow_manager/workflow_v2/workflow_helper.py67logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/workflow_v2/workflow_helper.py435 def _set_result_acknowledge(execution: WorkflowExecution) -> None:CODE
LOW…nd/workflow_manager/workflow_v2/execution_log_utils.py16logger = logging.getLogger(__name__)CODE
LOW…ow_manager/workflow_v2/execution_log_internal_views.py23logger = logging.getLogger(__name__)CODE
LOW…nd/workflow_manager/workflow_v2/file_history_helper.py19logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/workflow_v2/execution.py32logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/workflow_v2/execution.py391 def update_execution_task(execution_id: str, task_id: str) -> None:CODE
LOWbackend/workflow_manager/workflow_v2/execution_view.py10logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/workflow_v2/serializers.py33logger = logging.getLogger(__name__)CODE
LOW…end/workflow_manager/workflow_v2/undispatched_sweep.py50logger = logging.getLogger(__name__)CODE
LOW…end/workflow_manager/workflow_v2/execution_log_view.py21logger = logging.getLogger(__name__)CODE
LOW…end/workflow_manager/workflow_v2/file_history_views.py20logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/workflow_v2/dto.py188 def _update_metadata(self, result: dict, metadata: dict) -> None:CODE
LOWbackend/workflow_manager/workflow_v2/views.py67logger = logging.getLogger(__name__)CODE
LOW…ckend/workflow_manager/workflow_v2/models/execution.py24logger = logging.getLogger(__name__)CODE
LOW⚡…ckend/workflow_manager/workflow_v2/models/execution.py575 def update_execution_err(self, err_msg: str = "") -> None:CODE
LOWbackend/middleware/exception.py14logger = logging.getLogger(__name__)CODE
LOWbackend/middleware/internal_api_auth.py14logger = logging.getLogger(__name__)CODE
LOWbackend/migrating/v2/unstract_migrations.py12logger = logging.getLogger(__name__)CODE
LOW…kend/migrating/v2/management/commands/migrate_to_v2.py16logger = logging.getLogger(__name__)CODE
LOWbackend/configuration/models.py13logger = logging.getLogger(__name__)CODE
LOWbackend/configuration/config_registry.py14logger = logging.getLogger(__name__)CODE
LOWbackend/configuration/internal_views.py13logger = logging.getLogger(__name__)CODE
LOWbackend/tool_instance_v2/serializers.py31logger = logging.getLogger(__name__)CODE
LOW⚡backend/tool_instance_v2/tool_instance_helper.py39logger = logging.getLogger(__name__)CODE
LOWbackend/tool_instance_v2/internal_views.py19logger = logging.getLogger(__name__)CODE
LOWbackend/tool_instance_v2/tool_processor.py28logger = logging.getLogger(__name__)CODE
LOWbackend/tool_instance_v2/tool_processor.py100 def update_schema_with_adapter_configurations(schema: Spec, user: User) -> None:CODE
LOWbackend/tool_instance_v2/views.py34logger = logging.getLogger(__name__)CODE
LOWbackend/plugins/__init__.py11logger = logging.getLogger(__name__)CODE
LOWbackend/plugins/__init__.py60__all__ = ["get_plugin_manager", "get_plugin"]CODE
LOWbackend/plugins/apps.py7logger = logging.getLogger(__name__)CODE
LOWbackend/plugins/workflow_manager/workflow_v2/utils.py15logger = logging.getLogger(__name__)CODE
LOW…ns/workflow_manager/workflow_v2/api_hub_usage_utils.py11logger = logging.getLogger(__name__)CODE
LOWbackend/plugins/api/dto/__init__.py31__all__ = ["metadata", "ApiDtoService"]CODE
LOWbackend/tenant_account_v2/signals.py16logger = logging.getLogger(__name__)CODE
LOWbackend/tenant_account_v2/group_serializers.py17logger = logging.getLogger(__name__)CODE
LOWbackend/tenant_account_v2/group_views.py30logger = logging.getLogger(__name__)CODE
437 more matches not shown…
Redundant / Tautological Comments182 hits · 276 pts
SeverityFileLineSnippetContext
LOWdocker/scripts/bump_sdk_v0_version.sh144# Check if a file existsCOMMENT
LOWdocker/scripts/bump_sdk_v0_version.sh236 # Check if file existsCOMMENT
LOWdocker/scripts/bump_sdk_v0_version.sh242 # Check if file has unstract-sdk dependencyCOMMENT
LOWdocker/scripts/bump_sdk_v0_version.sh310 # Check if pyproject.toml existsCOMMENT
LOWdocker/scripts/bump_sdk_v0_version.sh434 # Check if a core command is providedCOMMENT
LOWdocker/scripts/bump_sdk_v0_version.sh440 # Check if --target-version is provided with --bumpCOMMENT
LOW.claude/skills/connector-ops/scripts/fetch_logo.py47 # Check if it's actually an SVG (not an error page)COMMENT
LOW…laude/skills/connector-ops/scripts/verify_connector.py165 # Check if registeredCOMMENT
LOW…e/skills/adapter-ops/scripts/init_embedding_adapter.py260 # Check if SVG (by URL extension or content)STRING
LOW…e/skills/adapter-ops/scripts/init_embedding_adapter.py350 # Check if SVGSTRING
LOW.claude/skills/adapter-ops/scripts/init_llm_adapter.py270 # Check if SVG (by URL extension or content)STRING
LOW.claude/skills/adapter-ops/scripts/init_llm_adapter.py360 # Check if SVGSTRING
LOWbackend/workflow_manager/internal_views.py115 # Check if cost data is requested (expensive operation)COMMENT
LOWbackend/workflow_manager/internal_views.py219 # Check if pipeline_id references a Pipeline or APIDeployment (like serializer)COMMENT
LOWbackend/workflow_manager/internal_views.py233 # Check if it's an APIDeployment (like serializer does)COMMENT
LOWbackend/workflow_manager/internal_views.py408 # Check if workflow has API deploymentsCOMMENT
LOWbackend/workflow_manager/internal_views.py2298 # Check if this is a regular pipeline (ETL/TASK/APP)COMMENT
LOWbackend/workflow_manager/internal_views.py2865 # Check if file history should be created based on use_file_history flagCOMMENT
LOWbackend/workflow_manager/execution/views/execution.py29 # Check if this specific execution belongs to a workflow created by the userCOMMENT
LOWbackend/workflow_manager/endpoint_v2/queue_utils.py34 # Check if caller explicitly wants the default (non-HITL) backendCOMMENT
LOWbackend/workflow_manager/endpoint_v2/queue_utils.py52 # Check if this is for HITL operationsCOMMENT
LOWbackend/workflow_manager/endpoint_v2/destination.py139 # Check if connector is required but missingCOMMENT
LOWbackend/workflow_manager/endpoint_v2/destination.py202 # Check if API deployment requested HITL override with hitl_queue_nameCOMMENT
LOWbackend/workflow_manager/endpoint_v2/destination.py204 # Check if API rules are configured for this workflowCOMMENT
LOWbackend/workflow_manager/endpoint_v2/destination.py646 # Check if metadata is not None and is either a non-empty dict or valid stringCOMMENT
LOWbackend/workflow_manager/endpoint_v2/destination.py953 # Check if this is packet processingCOMMENT
LOWbackend/workflow_manager/endpoint_v2/source.py337 # Check if we've hit the limitCOMMENT
LOWbackend/workflow_manager/endpoint_v2/source.py727 # Check if the path is a directory using metadata first.COMMENT
LOW…ation-connectors/test_destination_connector_mariadb.py33 # Check if all required environment variables are setCOMMENT
LOW…ion-connectors/test_destination_connector_snowflake.py33 # Check if all required environment variables are setCOMMENT
LOW…ination-connectors/test_destination_connector_mssql.py30 # Check if all required environment variables are setCOMMENT
LOW…nation-connectors/test_destination_connector_oracle.py32 # Check if all required environment variables are setCOMMENT
LOW…tion-connectors/test_destination_connector_redshift.py30 # Check if all required environment variables are setCOMMENT
LOW…ination-connectors/test_destination_connector_mysql.py32 # Check if all required environment variables are setCOMMENT
LOW…nd/workflow_manager/workflow_v2/file_history_helper.py326 # Check if file history already existsCOMMENT
LOWbackend/workflow_manager/workflow_v2/views.py1408 # Check if file already has completed historyCOMMENT
LOW⚡…ckend/workflow_manager/workflow_v2/models/execution.py561 # Check if this is an API deployment executionCOMMENT
LOWbackend/middleware/organization_middleware.py11 # Check if the URL matches the pattern with organization IDCOMMENT
LOWbackend/middleware/organization_middleware.py14 # Check if the request path matches any of the whitelisted pathsCOMMENT
LOWbackend/configuration/config_registry.py35 # Check if plugin is activeCOMMENT
LOWbackend/configuration/internal_views.py76 # Check if we found an organization-specific overrideCOMMENT
LOW⚡backend/tool_instance_v2/serializers.py324 # Check if the workflow existsCOMMENT
LOW⚡backend/tool_instance_v2/serializers.py330 # Check if the number of tool instances matches the actual countCOMMENT
LOW⚡backend/tool_instance_v2/serializers.py340 # Check if each tool instance exists in the workflowCOMMENT
LOWbackend/tool_instance_v2/tool_instance_helper.py343 # Check if any adapter value is in UUID format (indicates already migrated)COMMENT
LOWbackend/tool_instance_v2/tool_instance_helper.py388 # Check if already migratedCOMMENT
LOWbackend/tool_instance_v2/tool_processor.py49 # Check if it's an agentic studio tool (cloud-only feature)COMMENT
LOWbackend/file_management/file_management_helper.py211 # Check if the file type is in the allowed listCOMMENT
LOW…tils/file_storage/helpers/prompt_studio_file_helper.py188 # Check if the file type is in the allowed listCOMMENT
LOWbackend/connector_v2/serializers.py109 # Check if OAuth tokens are actually present in metadataCOMMENT
LOWbackend/connector_v2/unstract_account.py34 # Check if folder exists and create if it is not availableCOMMENT
LOWbackend/api_v2/permission.py11 # Check if the user is the owner via base class logicCOMMENT
LOWbackend/api_v2/serializers.py202 # Check if this workflow already has an active API deploymentCOMMENT
LOWbackend/api_v2/serializers.py368 # Check if HITL feature is availableCOMMENT
LOWbackend/api_v2/serializers.py490 # Check if profile existsCOMMENT
LOWbackend/api_v2/serializers.py525 # Check if the profile owner matches the API key ownerCOMMENT
LOWbackend/api_v2/serializers.py550 # Check if UUID exists in the databaseCOMMENT
LOWbackend/api_v2/deployment_helper.py330 # Check if highlight data should be removed using configuration registryCOMMENT
LOW⚡…i_v2/management/commands/clear_org_rate_limit_cache.py118 # Check if cache backend supports delete_pattern (Redis cache)COMMENT
LOW…nd/api_v2/management/commands/delete_org_rate_limit.py32 # Check if custom limit existsCOMMENT
122 more matches not shown…
Hallucination Indicators23 hits · 265 pts
SeverityFileLineSnippetContext
CRITICAL⚡…nager/workflow_v2/tests/test_record_dispatch_handle.py98 model.objects.filter.return_value.update.assert_called_once_with(CODE
CRITICAL⚡…nager/workflow_v2/tests/test_record_dispatch_handle.py119 model.objects.filter.return_value.update.assert_called_once_with(CODE
CRITICALbackend/configuration/models.py6from django.core.exceptions import ValidationErrorCODE
CRITICALbackend/tool_instance_v2/tool_instance_helper.py10from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICAL⚡…nd/scheduler/tests/test_pg_periodic_schedule_mirror.py407 sched.objects.filter.return_value.delete.assert_called_once()CODE
CRITICAL⚡…nd/scheduler/tests/test_pg_periodic_schedule_mirror.py418 sched.objects.filter.return_value.delete.assert_called_once()CODE
CRITICALbackend/scheduler/tests/test_pg_schedule_ownership.py220 Sched.objects.filter.return_value.update.assert_not_called()CODE
CRITICALbackend/utils/FileValidator.py6from django.core.exceptions import ValidationErrorCODE
CRITICALbackend/pg_queue/tests/test_mirror_pg_periodic_tasks.py246 Beat.objects.filter.return_value.update.assert_called_once()CODE
CRITICAL⚡…/pg_queue/tests/test_reconcile_pg_schedules_command.py199 Sched.objects.order_by.return_value.iterator.assert_called_once_with(CODE
CRITICAL⚡…/pg_queue/tests/test_reconcile_pg_schedules_command.py207 Sched.objects.values_list.return_value.iterator.assert_called_once_with(CODE
CRITICAL⚡…/pg_queue/tests/test_reconcile_pg_schedules_command.py215 Sched.objects.order_by.return_value.iterator.assert_called_once_with(chunk_size=7)CODE
CRITICALbackend/pipeline_v2/pipeline_processor.py3from django.core.exceptions import ValidationErrorCODE
CRITICAL…ckend/pipeline_v2/tests/test_pipeline_lookup_guards.py23from django.core.exceptions import ValidationErrorCODE
CRITICALbackend/api_v2/key_helper.py5from django.core.exceptions import ValidationErrorCODE
CRITICALbackend/api_v2/utils.py3from django.core.exceptions import ValidationErrorCODE
CRITICALbackend/api_v2/tests/test_api_key_create_target.py51from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICAL…/prompt_studio/prompt_studio_core_v2/internal_views.py45 from django.core.exceptions import ValidationErrorCODE
CRITICALbackend/prompt_studio/tests/test_request_validation.py326 from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICAL…ompt_studio_output_manager_v2/output_manager_helper.py5from django.core.exceptions import ValidationErrorCODE
CRITICAL…lobal_api_deployment_key/tests/test_global_key_auth.py33from django.core.exceptions import ValidationError # noqa: E402CODE
CRITICAL⚡backend/mcp_server/tests/test_input_guards.py163 from django.core.exceptions import ValidationErrorCODE
CRITICAL…k1/src/unstract/sdk1/patches/litellm_cohere_timeout.py3Bug: litellm.llms.cohere.embed.handler.embedding() and async_embedding()STRING
Empty Error Handlers52 hits · 260 pts
SeverityFileLineSnippetContext
HIGHbackend/workflow_manager/internal_views.py2294except APIDeployment.DoesNotExist:CODE
HIGHbackend/workflow_manager/internal_views.py2963except APIDeployment.DoesNotExist:CODE
HIGH…_manager/execution/tests/test_pg_finalization_fixes.py757except RuntimeError:CODE
HIGH…ckend/workflow_manager/workflow_v2/models/execution.py303except ObjectDoesNotExist:CODE
HIGH…ckend/workflow_manager/workflow_v2/models/execution.py308except ObjectDoesNotExist:CODE
HIGHbackend/migrating/v2/unstract_migrations.py36except ImportError:CODE
HIGHbackend/migrating/v2/unstract_migrations.py63except ImportError:CODE
HIGHbackend/plugins/workflow_manager/workflow_v2/utils.py120except ImportError:CODE
HIGHbackend/plugins/workflow_manager/workflow_v2/utils.py154except ImportError:CODE
HIGHbackend/scheduler/tasks.py315except ModuleNotFoundError:CODE
HIGHbackend/utils/fields.py131except json.JSONDecodeError:CODE
HIGHbackend/utils/file_storage/helpers/streaming_writer.py58except FileNotFoundError:CODE
HIGHbackend/utils/file_storage/helpers/streaming_writer.py42except Exception:CODE
HIGHbackend/connector_v2/views.py201except Exception:CODE
HIGHbackend/api_v2/deployment_helper.py602except ValueError:CODE
HIGH…t_studio/prompt_studio_core_v2/prompt_studio_helper.py395except ProfileManager.DoesNotExist:CODE
HIGHbackend/prompt_studio/prompt_studio_core_v2/models.py209except FileNotFoundError:CODE
HIGH…end/prompt_studio/prompt_studio_core_v2/serializers.py196except ObjectDoesNotExist:CODE
HIGHbackend/prompt_studio/prompt_studio_core_v2/views.py1036except (FileNotFoundError, FileNotFound):CODE
HIGHbackend/mcp_server/spend_guard.py198except (*CACHE_ERRORS, AttributeError, NotImplementedError):CODE
HIGHbackend/mcp_server/tests/test_spend_guard.py222except RuntimeError:CODE
HIGHplatform-service/tests/test_memory_leak_simulation.py79except Exception:CODE
HIGHplatform-service/tests/test_memory_leak_simulation.py113except Exception:CODE
HIGHplatform-service/tests/test_memory_leak_simulation.py150except APIError:CODE
HIGHplatform-service/tests/test_memory_leak_simulation.py185except APIError:CODE
HIGHplatform-service/tests/test_memory_leak_simulation.py303except Exception:CODE
HIGHplatform-service/tests/test_memory_leak_simulation.py345except Exception:CODE
HIGHworkers/plugin_registry.py223except Exception:CODE
HIGHworkers/file_processing/structure_tool_task.py936except Exception:CODE
HIGHworkers/queue_backend/pg_queue/liveness.py186except (BrokenPipeError, ConnectionResetError):CODE
HIGHworkers/queue_backend/pg_queue/liveness.py206except (BrokenPipeError, ConnectionResetError):CODE
HIGHworkers/shared/clients/base_client.py632except Exception:CODE
HIGHworkers/shared/patterns/retry/backoff.py407except Exception:CODE
HIGHworkers/shared/patterns/retry/backoff.py427except Exception:CODE
HIGHworkers/shared/patterns/retry/backoff.py169except Exception:CODE
HIGHworkers/shared/enums/worker_enums_base.py128except ValueError:CODE
HIGH…rkers/shared/workflow/execution/active_file_manager.py667except Exception:CODE
HIGHworkers/shared/infrastructure/context.py45except AttributeError:CODE
HIGHworkers/shared/infrastructure/context.py84except AttributeError:CODE
HIGHworkers/shared/infrastructure/logging/helpers.py208except Exception:CODE
HIGHworkers/ide_callback/tasks.py117except Exception:CODE
HIGHworkers/executor/executors/json_repair_helper.py26except ValueError:CODE
HIGH…ors/src/unstract/connectors/filesystems/minio/minio.py293except ValueError:CODE
HIGH…filesystems/azure_cloud_storage/azure_cloud_storage.py168except ValueError:CODE
HIGHunstract/core/src/unstract/core/worker_base.py393except ImportError:CODE
HIGHunstract/core/src/unstract/core/worker_base.py410except ImportError:CODE
HIGHunstract/core/src/unstract/core/file_operations.py351except Exception:CODE
HIGHunstract/core/src/unstract/core/network/ssrf.py116except ValueError:CODE
HIGHunstract/sdk1/src/unstract/sdk1/exceptions.py197except ValueError:CODE
HIGHunstract/sdk1/src/unstract/sdk1/file_storage/impl.py253except Exception:CODE
HIGHunstract/sdk1/src/unstract/sdk1/file_storage/impl.py224except FileNotFoundError:CODE
HIGHunstract/sdk1/src/unstract/sdk1/file_storage/impl.py229except FileNotFoundError:CODE
Modern AI Meta-Vocabulary69 hits · 238 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md249- [Unstract + Crew.AI](https://unstract.com/blog/agentic-document-extraction-processing-with-unstract-crew-ai/)CODE
MEDIUMdocker/docker-compose.yaml217 # bounded-minutes orchestration, and idempotency-guarded (UN-3671) so a vtCOMMENT
MEDIUMdocker/docker-compose.yaml218 # overrun can't double-orchestrate. Without an explicit vt the consumerCOMMENT
MEDIUMfrontend/src/components/ui/shims/antd-structure.tsx1454 // sits in a tight row — the agentic Prompt Studio's documentCOMMENT
MEDIUM⚡backend/tool_instance_v2/tool_instance_helper.py31# Import agentic registry if available (cloud-only feature)COMMENT
MEDIUMbackend/tool_instance_v2/tool_processor.py18# Import agentic registry if available (cloud-only feature)COMMENT
MEDIUMbackend/tool_instance_v2/tool_processor.py49 # Check if it's an agentic studio tool (cloud-only feature)COMMENT
MEDIUMbackend/tool_instance_v2/tool_processor.py142 # Add agentic studio tools if available (cloud-only feature)COMMENT
MEDIUM⚡backend/pg_queue/models.py555 # deliberately never deleted at barrier finalise (there is no orchestration-COMMENT
MEDIUM⚡backend/pg_queue/models.py557 # post-completion redelivery from re-orchestrating. Only the reaper'sCOMMENT
MEDIUM⚡backend/pg_queue/models.py566 # When the orchestration was claimed. The reaper's sweep_orphan_claims gates onCOMMENT
MEDIUM⚡backend/pg_queue/models.py568 # just-claimed live orchestration that hasn't armed its barrier is left alone).COMMENT
MEDIUM…t_studio/prompt_studio_core_v2/prompt_studio_helper.py2992 # Enrich with cloud-only per-prompt settings (table / agentic-table)COMMENT
MEDIUM…/prompt_studio/prompt_studio_core_v2/internal_views.py23# 10 MB — agentic table extraction output with highlight coordinatesCOMMENT
MEDIUM…pt_studio_registry_v2/prompt_studio_registry_helper.py215 # A UUID-shaped tool_id with no registry row - e.g. an agentic toolCOMMENT
MEDIUM⚡backend/adapter_processor_v2/serializers.py153 # Only retrieve context window and icon for available adaptersCOMMENT
MEDIUM⚡backend/adapter_processor_v2/serializers.py156 # Retrieve context window if adapter is a LLMCOMMENT
MEDIUM⚡workers/general/tasks.py239 # Tracks whether THIS delivery won the orchestration claim, so the errorCOMMENT
MEDIUM⚡workers/general/tasks.py246 # orchestration no-ops here BEFORE any setup, barrier arm, or batchCOMMENT
MEDIUM⚡workers/general/tasks.py247 # dispatch — so exactly one delivery orchestrates the execution evenCOMMENT
MEDIUM⚡workers/general/tasks.py402 # Release the orchestration claim so a redelivery/retry canCOMMENT
MEDIUM⚡workers/general/tasks.py403 # re-orchestrate. The claim is taken before the work, so without this aCOMMENT
MEDIUMworkers/general/tasks.py297 # PG redelivery guard (defense-in-depth): the orchestration claimCOMMENT
MEDIUMworkers/general/tasks.py298 # tombstone normally blocks re-orchestrating a COMPLETED execution, butCOMMENT
MEDIUMworkers/general/tasks.py358 # Calculate orchestration time (not total execution time - callback worker calculates that)COMMENT
MEDIUMworkers/general/tasks.py662 # For ETL/TASK workflows, we use file processing orchestrationCOMMENT
MEDIUMworkers/general/tasks.py822 # Use orchestration method that creates chord and returns immediatelyCOMMENT
MEDIUMworkers/general/tasks.py836 # The orchestration result contains the chord_id and batch informationCOMMENT
MEDIUMworkers/general/tasks.py166 return False # first delivery — this replica owns the orchestrationCODE
MEDIUMworkers/file_processing/structure_tool_task.py351 # ---- Route agentic vs regular ----COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py571 # non-agentic table plugin uses (LegacyExecutor._run_table_extraction).COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py623 # All-agentic case: skip the legacy pipeline entirely. The metricsCOMMENT
MEDIUMworkers/file_processing/structure_tool_task.py624 # dict is still populated, so an agentic-only deployment reports theCOMMENT
MEDIUMworkers/file_processing/structure_tool_task.py702 # Try agentic registryCOMMENT
MEDIUMworkers/file_processing/structure_tool_task.py775 # 1. Unpack agentic project metadata (matches registry_helper export format)COMMENT
MEDIUMworkers/queue_backend/pg_barrier.py470 # double-orchestration window this guard exists to close.COMMENT
MEDIUMworkers/queue_backend/pg_queue/consumer.py146# orchestration claim is taken (a circuit-breaker-open drop, or repeated pre-claimCOMMENT
MEDIUMworkers/queue_backend/pg_queue/reaper.py856 # (A terminal execution's orchestration message was acked on completion orCOMMENT
MEDIUMworkers/queue_backend/pg_queue/reaper.py857 # on the first skip-redelivery, so there is nothing left to re-orchestrateCOMMENT
MEDIUMworkers/queue_backend/pg_queue/reaper.py875 # marking, so a slow orchestration that just armed its barrier (or a freshCOMMENT
MEDIUMworkers/queue_backend/pg_queue/reaper.py1349 # Orphan orchestration-claim GC + crash-window recovery. RunsCOMMENT
MEDIUM⚡workers/tests/test_orchestration_idempotency.py32# --- Layer 1: the duplicate-orchestration gate (no DB) ---COMMENT
MEDIUM⚡workers/tests/test_orchestration_idempotency.py52 # proceed would double-orchestrate, a swallow-and-skip would silently drop aCOMMENT
MEDIUM⚡workers/tests/test_orchestration_idempotency.py272 # re-orchestrate (this is what stops a transient failure permanentlyCOMMENT
MEDIUM⚡workers/tests/test_orchestration_idempotency.py288 # orchestration must resolve to exactly one True. Force the contendedCOMMENT
MEDIUMworkers/tests/test_orchestration_idempotency.py143 # redelivery/retry can re-orchestrate.COMMENT
MEDIUMworkers/tests/test_orchestration_idempotency.py168 # but finds the execution already terminal must skip re-orchestrationCOMMENT
MEDIUMworkers/tests/test_pg_reaper.py1387# --- Layer 6: orphan orchestration-claim sweep (real Postgres, UN-3679) ---COMMENT
MEDIUMworkers/tests/test_pg_reaper.py1464 # A just-claimed live orchestration (claimed_at within the stuck-timeout)COMMENT
MEDIUMworkers/tests/test_pg_reaper.py1535 # A slow-but-live orchestration arms its barrier BETWEEN the sweep's SELECTCOMMENT
MEDIUM⚡workers/tests/test_pg_orchestration_failure.py76 # original orchestration exception or skip its re-raise.COMMENT
MEDIUM⚡workers/tests/test_agentic_operations.py137# 4. LegacyExecutor does NOT handle agentic operationsCOMMENT
MEDIUM⚡workers/tests/test_agentic_operations.py188# 5. Structure tool routes to agentic executorCOMMENT
MEDIUM⚡workers/tests/test_agentic_operations.py233# 6. tasks.py log_component for agentic operationsCOMMENT
MEDIUM⚡workers/tests/test_single_pass_extraction.py323# 3. agentic operations — handled by AgenticPromptStudioExecutor (cloud)COMMENT
MEDIUM⚡workers/tests/test_plugin_migration_regression.py410 # Both legacy and agentic contexts can create instancesCOMMENT
MEDIUM⚡workers/tests/test_plugin_migration_regression.py180 assert len(Operation) == 19 # 7 legacy + 2 table + 2 sps + 8 agenticCODE
MEDIUMworkers/tests/test_structure_tool_pipeline.py450 # Prompt studio lookup fails, agentic succeedsCOMMENT
MEDIUMworkers/tests/test_structure_tool_pipeline.py472 # Simulate successful agentic extractionCOMMENT
MEDIUMworkers/tests/test_structure_tool_pipeline.py481 # Should dispatch to agentic executor with agentic_extract operationCOMMENT
9 more matches not shown…
Self-Referential Comments60 hits · 188 pts
SeverityFileLineSnippetContext
MEDIUMrunner/src/unstract/runner/clients/docker_client.py80 # Create a Docker client that communicates withCOMMENT
MEDIUMrunner/src/unstract/runner/clients/test_docker.py90 # Create a mock for the 'images' attributeCOMMENT
MEDIUMrunner/src/unstract/runner/clients/test_docker.py103 # Create a mock for the 'images' attributeCOMMENT
MEDIUMrunner/src/unstract/runner/clients/test_docker.py107 # Create a mock for the 'api' attributeCOMMENT
MEDIUMrunner/src/unstract/runner/clients/test_docker.py193 # Create a mock for the containers.run methodCOMMENT
MEDIUMrunner/src/unstract/runner/controller/run.py8# Define a Blueprint with a root URL pathCOMMENT
MEDIUM⚡runner/src/unstract/runner/controller/health.py7# Define a Blueprint with a root URL pathCOMMENT
MEDIUM⚡runner/src/unstract/runner/controller/health.py11# Define a route to ping testCOMMENT
MEDIUMbackend/workflow_manager/endpoint_v2/database_utils.py156 # Create a safe fallback error objectCOMMENT
MEDIUMbackend/workflow_manager/endpoint_v2/source.py1021 # This function is typically relevant for extracted text content,COMMENT
MEDIUM…ation-connectors/test_destination_connector_mariadb.py369 # Create the table first if it doesn't existCOMMENT
MEDIUM…ination-connectors/test_destination_connector_mysql.py368 # Create the table first if it doesn't existCOMMENT
MEDIUMbackend/workflow_manager/workflow_v2/workflow_helper.py885 # Create a new WorkflowExecution entity for each pipeline execution.COMMENT
MEDIUM…nd/workflow_manager/workflow_v2/execution_log_utils.py164 # Create the schedulerCOMMENT
MEDIUMbackend/workflow_manager/workflow_v2/execution.py153 # Create the workflow executionCOMMENT
MEDIUMbackend/tool_instance_v2/serializers.py94 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUMbackend/scheduler/tasks.py229 # Create a crontab scheduleCOMMENT
MEDIUMbackend/utils/log_events.py69 """This function is called when a client connects to the server.STRING
MEDIUM…tils/file_storage/helpers/prompt_studio_file_helper.py246 """This method is used to file files with the specific patternSTRING
MEDIUMbackend/utils/seed_data/seed_data.py32 # Creating a projectCOMMENT
MEDIUMbackend/backend/celery_service.py23# Create a Celery instance. Default time zone is UTC.COMMENT
MEDIUM⚡backend/pipeline_v2/views.py262 # Create a PostmanCollection for a PipelineCOMMENT
MEDIUMbackend/prompt_studio/prompt_studio_core_v2/views.py1125 # Create a record in the db for the file (document_name = original filename)COMMENT
MEDIUMbackend/prompt_studio/prompt_studio_core_v2/views.py1129 # Create a dictionary to store document dataCOMMENT
MEDIUMbackend/prompt_studio/prompt_studio_core_v2/views.py1416 # Create a backup copy if requestedCOMMENT
MEDIUM⚡backend/adapter_processor_v2/serializers.py144 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUM.github/workflows/production-build.yaml281 # Create a concise summary for SlackCOMMENT
MEDIUMworkers/worker.py267 # Initialize state variablesCOMMENT
MEDIUM⚡workers/tests/test_table_extract_operation.py68 # Create a mock TableExtractorExecutorCOMMENT
MEDIUMworkers/shared/cache/cache_keys.py51 # Create a hash of the arguments for consistent keysCOMMENT
MEDIUMworkers/shared/utils/api_client_singleton.py43 # Create a cache key based on API base URL and keyCOMMENT
MEDIUMworkers/shared/workflow/destination_connector.py1147 # Import necessary modules for file operationsCOMMENT
MEDIUMworkers/shared/workflow/connectors/source.py537 # Create the streaming discovery instanceCOMMENT
MEDIUMworkers/shared/api/internal_client.py135 # Create the first base client to establish the sessionCOMMENT
MEDIUMworkers/shared/infrastructure/database/utils.py301 # Create a safe fallback error objectCOMMENT
MEDIUMworkers/shared/infrastructure/database/utils.py394 # Create a safe fallback error objectCOMMENT
MEDIUMworkers/shared/infrastructure/config/worker_config.py505 # Create a temporary environment with prefixed variablesCOMMENT
MEDIUMunstract/connectors/tests/databases/test_bigquery_db.py55 # Create a mock Forbidden exception with billing error messageCOMMENT
MEDIUMunstract/connectors/tests/databases/test_bigquery_db.py78 # Create a mock Forbidden exception with permission error messageCOMMENT
MEDIUMunstract/connectors/tests/databases/test_bigquery_db.py98 # Create a mock NotFound exceptionCOMMENT
MEDIUMunstract/connectors/tests/databases/test_bigquery_db.py117 # Create a mock Forbidden exception with empty messageCOMMENT
MEDIUM…act/connectors/tests/filesystems/test_sharepoint_fs.py273 # Create a simple PDF with one line of textCOMMENT
MEDIUM…ctors/src/unstract/connectors/databases/unstract_db.py352 # Create a safe fallback error objectCOMMENT
MEDIUM⚡…tool-registry/src/unstract/tool_registry/tool_utils.py20 # Define a regular expression pattern for Docker image URLsCOMMENT
MEDIUM⚡…tool-registry/src/unstract/tool_registry/tool_utils.py23 # Define a regular expression pattern for local tool URLsCOMMENT
MEDIUMunstract/flags/src/unstract/flags/flipt_grpc/client.py66 # Create the gRPC channelCOMMENT
MEDIUMunstract/flags/src/unstract/flags/flipt_grpc/client.py77 # Create the evaluation stub for flag evaluationCOMMENT
MEDIUMunstract/flags/src/unstract/flags/flipt_grpc/client.py80 # Create the Flipt stub for management operations (like ListFlags)COMMENT
MEDIUM…stract/flags/flipt_grpc/flipt/flipt_simple_pb2_grpc.py49# This class is part of an EXPERIMENTAL API.COMMENT
MEDIUM…pt_grpc/flipt/evaluation/evaluation_simple_pb2_grpc.py81# This class is part of an EXPERIMENTAL API.COMMENT
MEDIUM⚡unstract/flags/src/unstract/flags/client/flipt.py63 # Create a FliptClient instance for this specific namespaceCOMMENT
MEDIUMunstract/flags/src/unstract/flags/client/flipt.py169 # Create a FliptClient instance for this specific namespaceCOMMENT
MEDIUMunstract/sdk1/src/unstract/sdk1/adapters/base1.py352 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUMunstract/sdk1/src/unstract/sdk1/adapters/base1.py790 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUMunstract/sdk1/src/unstract/sdk1/adapters/base1.py911 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUMunstract/sdk1/src/unstract/sdk1/adapters/base1.py1297 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUMunstract/sdk1/src/unstract/sdk1/adapters/base1.py1432 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUMunstract/sdk1/src/unstract/sdk1/adapters/base1.py1600 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUM…stract/sdk1/adapters/vectordb/weaviate/src/weaviate.py83 # Create the colletionCOMMENT
MEDIUM…ct/sdk1/adapters/x2text/llm_whisperer_v2/src/helper.py438 # Define the directory of the output file and metadata pathsCOMMENT
Deep Nesting224 hits · 182 pts
SeverityFileLineSnippetContext
LOWtests/rig/cli.py459CODE
LOW.claude/skills/connector-ops/scripts/fetch_logo.py31CODE
LOW.claude/skills/connector-ops/scripts/fetch_logo.py61CODE
LOW.claude/skills/connector-ops/scripts/fetch_logo.py85CODE
LOW.claude/skills/connector-ops/scripts/fetch_logo.py114CODE
LOW.claude/skills/connector-ops/scripts/fetch_logo.py142CODE
LOW…laude/skills/connector-ops/scripts/verify_connector.py95CODE
LOW…e/skills/adapter-ops/scripts/init_embedding_adapter.py182CODE
LOW…e/skills/adapter-ops/scripts/init_embedding_adapter.py415CODE
LOW.claude/skills/adapter-ops/scripts/manage_models.py169CODE
LOW.claude/skills/adapter-ops/scripts/init_llm_adapter.py192CODE
LOW.claude/skills/adapter-ops/scripts/init_llm_adapter.py425CODE
LOW.claude/skills/csp-check/scripts/scan_origins.py229CODE
LOWbackend/workflow_manager/internal_views.py205CODE
LOWbackend/workflow_manager/internal_views.py332CODE
LOWbackend/workflow_manager/internal_views.py519CODE
LOWbackend/workflow_manager/internal_views.py781CODE
LOWbackend/workflow_manager/internal_views.py950CODE
LOWbackend/workflow_manager/internal_views.py1107CODE
LOWbackend/workflow_manager/internal_views.py1596CODE
LOWbackend/workflow_manager/internal_views.py2066CODE
LOWbackend/workflow_manager/internal_views.py2157CODE
LOWbackend/workflow_manager/internal_views.py2259CODE
LOWbackend/workflow_manager/internal_views.py2364CODE
LOWbackend/workflow_manager/internal_views.py2459CODE
LOWbackend/workflow_manager/utils/pipeline_utils.py17CODE
LOW…kend/workflow_manager/file_execution/internal_views.py274CODE
LOW…kend/workflow_manager/file_execution/internal_views.py412CODE
LOW…kend/workflow_manager/file_execution/internal_views.py508CODE
LOW…er/file_execution/tests/test_index_migration_guards.py75CODE
LOW…er/file_execution/tests/test_index_migration_guards.py92CODE
LOWbackend/workflow_manager/execution/filter.py37CODE
LOWbackend/workflow_manager/endpoint_v2/destination.py280CODE
LOWbackend/workflow_manager/endpoint_v2/destination.py603CODE
LOWbackend/workflow_manager/endpoint_v2/source.py966CODE
LOWbackend/workflow_manager/workflow_v2/views.py764CODE
LOWbackend/workflow_manager/workflow_v2/views.py1152CODE
LOWbackend/workflow_manager/workflow_v2/views.py1184CODE
LOWbackend/workflow_manager/workflow_v2/views.py1361CODE
LOWbackend/workflow_manager/workflow_v2/views.py447CODE
LOWbackend/workflow_manager/workflow_v2/views.py493CODE
LOW…kend/migrating/v2/management/commands/migrate_to_v2.py147CODE
LOW…kend/migrating/v2/management/commands/migrate_to_v2.py387CODE
LOWbackend/tool_instance_v2/serializers.py90CODE
LOWbackend/tool_instance_v2/tool_instance_helper.py433CODE
LOWbackend/tool_instance_v2/tool_instance_helper.py560CODE
LOWbackend/tool_instance_v2/internal_views.py110CODE
LOWbackend/platform_api/services.py220CODE
LOWbackend/scheduler/ownership.py97CODE
LOWbackend/scheduler/tasks.py275CODE
LOWbackend/utils/cache_service.py48CODE
LOW…tils/file_storage/helpers/prompt_studio_file_helper.py113CODE
LOWbackend/utils/tests/test_list_pagination.py164CODE
LOWbackend/utils/request/request.py19CODE
LOWbackend/backend/internal_base_urls.py58CODE
LOWbackend/backend/tests/test_redis_settings_derivation.py938CODE
LOW…_queue/management/commands/mirror_pg_periodic_tasks.py345CODE
LOWbackend/pipeline_v2/serializers/crud.py305CODE
LOWbackend/api_v2/deployment_helper.py184CODE
LOWbackend/api_v2/deployment_helper.py560CODE
164 more matches not shown…
Structural Annotation Overuse91 hits · 173 pts
SeverityFileLineSnippetContext
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx350 // Step 1: Export toolCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx365 // Step 2: Create workflow with unique name based on API deployment nameCOMMENT
LOW⚡…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx379 // Step 3: Configure endpoints with API connection typeCOMMENT
LOW⚡…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx382 // Step 4: Add tool instance to workflowCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx398 // Step 5: Update tool instance with proper metadataCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx423 // Step 6: Create API deploymentCOMMENT
LOW⚡.claude/skills/connector-ops/SKILL.md310### Step 1: Identify ConnectorCOMMENT
LOW⚡.claude/skills/connector-ops/SKILL.md318### Step 2: Check DependenciesCOMMENT
LOW⚡.claude/skills/connector-ops/SKILL.md328### Step 3: Remove FilesCOMMENT
LOW⚡.claude/skills/connector-ops/SKILL.md341### Step 4: Clean Dependencies (Optional)COMMENT
LOW⚡.claude/skills/connector-ops/SKILL.md345### Step 5: VerifyCOMMENT
LOW⚡.claude/skills/connector-ops/SKILL.md355### Step 6: Report to UserCOMMENT
LOW⚡.claude/skills/connector-ops/SKILL.md375### Step 1: Understand the ChangeCOMMENT
LOW⚡.claude/skills/connector-ops/SKILL.md384### Step 2: Locate FilesCOMMENT
LOW⚡.claude/skills/connector-ops/SKILL.md391### Step 3: Make ChangesCOMMENT
LOW.claude/skills/connector-ops/SKILL.md58### Step 1: Gather RequirementsCOMMENT
LOW.claude/skills/connector-ops/SKILL.md65### Step 2: Research the ServiceCOMMENT
LOW.claude/skills/connector-ops/SKILL.md76### Step 3: Generate Connector IDCOMMENT
LOW.claude/skills/connector-ops/SKILL.md84### Step 4: Create Directory StructureCOMMENT
LOW.claude/skills/connector-ops/SKILL.md97### Step 5: Create Connector FilesCOMMENT
LOW.claude/skills/connector-ops/SKILL.md191### Step 6: Fetch LogoCOMMENT
LOW.claude/skills/connector-ops/SKILL.md207### Step 7: Add DependenciesCOMMENT
LOW.claude/skills/connector-ops/SKILL.md219### Step 8: Create TestsCOMMENT
LOW.claude/skills/connector-ops/SKILL.md260### Step 9: VerifyCOMMENT
LOW.claude/skills/connector-ops/SKILL.md275### Step 10: Report to UserCOMMENT
LOW.claude/skills/connector-ops/SKILL.md420### Step 4: Update TestsCOMMENT
LOW.claude/skills/connector-ops/SKILL.md427### Step 5: VerifyCOMMENT
LOW.claude/skills/connector-ops/SKILL.md440### Step 6: Report to UserCOMMENT
LOW⚡.claude/skills/worktree/worktree-setup.sh106# Step 2: Copy gitignored backend settingsCOMMENT
LOW⚡.claude/skills/worktree/worktree-setup.sh159# Step 3: Copy project-local Claude skills (gitignored ones)COMMENT
LOW⚡backend/workflow_manager/internal_views.py1292 # Step 2: Build OR conditions for file matching: (uuid1 AND path1) OR (uuid2 AND path2) OR ...COMMENT
LOW⚡backend/workflow_manager/internal_views.py1299 # Step 3: Execute bulk query on workflow_file_executions from active workflow executions onlyCOMMENT
LOW⚡backend/workflow_manager/internal_views.py1377 # Step 2: Extract UUIDs for IN queryCOMMENT
LOW⚡backend/workflow_manager/internal_views.py1380 # Step 3: Execute bulk query on workflow_file_executions from active workflow executions onlyCOMMENT
LOW⚡backend/workflow_manager/internal_views.py2029 # Step 1: Get source configuration with graceful error handlingCOMMENT
LOW⚡backend/workflow_manager/internal_views.py2032 # Step 2: Get destination configuration with graceful error handlingCOMMENT
LOW⚡backend/workflow_manager/internal_views.py2037 # Step 3: Build comprehensive workflow definition using dataclassesCOMMENT
LOWbackend/workflow_manager/internal_views.py1272 # Step 1: Get ACTIVE workflow executions for this workflowCOMMENT
LOWbackend/workflow_manager/internal_views.py1357 # Step 1: Get ACTIVE workflow executions for this workflowCOMMENT
LOW⚡…ation-connectors/test_destination_connector_mariadb.py416 # # Step 1: Create a legacy table manually (simulating old table structure)COMMENT
LOW⚡…ation-connectors/test_destination_connector_mariadb.py420 # Step 2: Verify table is detected as legacyCOMMENT
LOW⚡…ation-connectors/test_destination_connector_mariadb.py425 # Step 3: Trigger migration using the real migration flowCOMMENT
LOW⚡…ation-connectors/test_destination_connector_mariadb.py429 # Step 4: Verify migration was successfulCOMMENT
LOW⚡…ation-connectors/test_destination_connector_mariadb.py433 # Step 5: Test dual column writing (legacy + v2)COMMENT
LOW⚡backend/tenant_account_v2/tests.py297 # Step 1: the sole owner departs — the carve-out keeps the (nowCOMMENT
LOW⚡backend/tenant_account_v2/tests.py304 # Step 2: an org admin later adds a live co-owner, who then departs.COMMENT
LOW⚡backend/dashboard_metrics/services.py869 # Step 1: Get deployment names and execution filterCOMMENT
LOW⚡backend/dashboard_metrics/services.py876 # Step 2: Get executions with status and timestampCOMMENT
LOW⚡backend/dashboard_metrics/services.py893 # Step 3: Build exec->deployment mapping and statsCOMMENT
LOW⚡backend/dashboard_metrics/services.py898 # Step 4: Query LLM usageCOMMENT
LOWbackend/dashboard_metrics/services.py917 # Step 5: Query pages and aggregate usageCOMMENT
LOWbackend/dashboard_metrics/services.py928 # Step 6: Build results sorted by total_tokens descendingCOMMENT
LOW⚡docs/API_DEPLOYMENT_RATE_LIMITING.md340# Step 1: Update environment variableCOMMENT
LOW⚡docs/API_DEPLOYMENT_RATE_LIMITING.md343# Step 2: Restart application to load new settingCOMMENT
LOW⚡docs/API_DEPLOYMENT_RATE_LIMITING.md346# Step 3: Clear all caches to pick up immediatelyCOMMENT
LOW⚡workers/file_processing/tasks.py324 # Step 1: Validate and parse input dataCOMMENT
LOW⚡workers/file_processing/tasks.py327 # Step 2: Setup execution context. The terminal guard inside it may skip aCOMMENT
LOW⚡workers/file_processing/tasks.py341 # Step 3: Handle manual review logicCOMMENT
LOW⚡workers/file_processing/tasks.py344 # Step 4: Pre-create file executionsCOMMENT
LOW⚡workers/file_processing/tasks.py347 # Step 5: Process individual filesCOMMENT
31 more matches not shown…
Over-Commented Block180 hits · 166 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml61 hooks:COMMENT
LOWtox.ini1[tox]COMMENT
LOWdocker/docker-compose.yaml381 # A dedicated service rather than another queue on worker-pg-scheduler: theCOMMENT
LOWdocker/docker-compose.yaml421 - WORKER_PG_QUEUE_CONSUMER_HEALTH_STALE_SECONDS=${WORKER_PG_METRICS_HEALTH_STALE_SECONDS:-960}COMMENT
LOWdocker/sample.compose.override.yaml1# Development override - NO debugpy (use compose.debug.yaml for debugging)COMMENT
LOWdocker/compose.debug.yaml1# Debug layer - adds debugpy to servicesCOMMENT
LOWdocker/compose.debug.yaml81 # Queue set and worker type are deliberately NOT repeated: the module readsCOMMENT
LOWdocker/compose.debug.yaml161 # Wrap the PG consumer, NOT `celery -A worker worker` (UN-4046). ThisCOMMENT
LOWdocker/compose.debug.yaml181 # Postgres — the debug stack then accepts work and runs none of it.COMMENT
LOWdocker/docker-compose-redis-tls.yaml1# A stand-in for a managed Redis, for local development only (UN-4123).COMMENT
LOWdocker/redis-tls/generate-certs.sh1#!/usr/bin/env bashCOMMENT
LOWdocker/scripts/release-notes/print_release_notes.py1# type: ignoreCOMMENT
LOWdocker/scripts/uv-lock-gen/uv-lock.sh1#!/bin/bashCOMMENT
LOWfrontend/vite-env.d.ts1/// <reference types="vite/client" />COMMENT
LOWfrontend/src/setupTests.js1// jest-dom adds custom jest matchers for asserting on DOM nodes.COMMENT
LOWfrontend/src/components/ui/popover.tsx21 // A popover open inside a Modal is portalled to `document.body`, so itCOMMENT
LOWfrontend/src/routes/Router.jsx41// none are fetched on the unauthenticated /landing page. In OSS the importCOMMENT
LOWfrontend/src/helpers/pluginRegistry.js1import { lazy } from "react";COMMENT
LOWfrontend/src/helpers/pluginRegistry.js21// navigation to its route), so plugins are never pulled onto theCOMMENT
LOWfrontend/src/helpers/pluginLoader.js1// Classify a dynamic plugin-import failure as "plugin not shipped"COMMENT
LOWfrontend/src/helpers/prismSetup.js1import Prism from "prismjs";COMMENT
LOWrunner/src/unstract/runner/constants.py41 REDIS_PASSWORD = "REDIS_PASSWORD"COMMENT
LOWtests/critical_paths.yaml1# Unstract critical paths registry.COMMENT
LOWtests/groups.yaml1# Unstract test rig — group definitions.COMMENT
LOWtests/groups.yaml41 # since the tables are Django-managed models owned by the backend.COMMENT
LOWtests/groups.yaml261 paths: [tests/e2e/hurl]COMMENT
LOWtests/compose/docker-compose.test.yaml41COMMENT
LOWtests/rig/cli.py601 )COMMENT
LOWbackend/entrypoint.sh21 *) echo "Unknown argument: $1"; exit 1 ;;COMMENT
LOWbackend/entrypoint.sh41 # first start after an upgrade moves every schedule off Beat unless you set it toCOMMENT
LOWbackend/workflow_manager/internal_views.py541COMMENT
LOWbackend/workflow_manager/internal_views.py561 # _callback_already_ran); STOPPED records an explicit user/operatorCOMMENT
LOWbackend/workflow_manager/internal_views.py701 # skip fodder — while the freshly stranded execution sat at rank 1964 and everyCOMMENT
LOWbackend/workflow_manager/internal_views.py741 # and every run longer than the window is formally eligible for recoveryCOMMENT
LOW…ation-connectors/test_destination_connector_mariadb.py661COMMENT
LOW…ination-connectors/test_destination_connector_mysql.py641 # cursor.execute(f"DROP TABLE IF EXISTS {self.test_table_name}")COMMENT
LOWbackend/workflow_manager/workflow_v2/workflow_helper.py641 # the bookkeeping below must NOT flip the (now-running) row to ERROR.COMMENT
LOW…end/workflow_manager/workflow_v2/undispatched_sweep.py61# The predicate cannot distinguish "never dispatched" from "dispatched, handle notCOMMENT
LOW…end/workflow_manager/workflow_v2/undispatched_sweep.py81DEFAULT_MIN_AGE_SECONDS = 3600 # 1 hourCOMMENT
LOW…end/workflow_manager/workflow_v2/undispatched_sweep.py121 return valueCOMMENT
LOW…end/workflow_manager/workflow_v2/undispatched_sweep.py261 exc_info=True,COMMENT
LOW…end/workflow_manager/workflow_v2/undispatched_sweep.py281 # execution as a reason to STOP, not to overwrite. general/tasks.py returnsCOMMENT
LOW…end/workflow_manager/workflow_v2/undispatched_sweep.py301 # call that records the handle, including on the three branches above, and key bothCOMMENT
LOW…ckend/workflow_manager/workflow_v2/models/execution.py241 # the COMPLEMENT of the terminal set: the *index* stays usable if a newCOMMENT
LOWbackend/platform_api/whoami_views.py41COMMENT
LOWbackend/platform_api/tests/test_whoami.py21from rest_framework.test import APIRequestFactory, APITestCaseCOMMENT
LOWbackend/scheduler/ownership.py121 Flipt flip with nothing to restore.COMMENT
LOWbackend/scheduler/ownership.py161 )COMMENT
LOWbackend/scheduler/ownership.py201 #COMMENT
LOWbackend/scheduler/tasks.py21# ---------------------------------------------------------------------------COMMENT
LOWbackend/scheduler/tasks.py161 # without advancing the "last changed" timestamp.COMMENT
LOWbackend/scheduler/tests/test_pg_schedule_ownership.py261COMMENT
LOWbackend/utils/tests/test_org_path_discovery.py21COMMENT
LOWbackend/utils/models/org_aware_manager.py61 except (RuntimeError, OperationalError, ProgrammingError) as exc:COMMENT
LOWbackend/utils/models/org_path_discovery.py21COMMENT
LOWbackend/notification_v2/notification_dispatch.py61 org_string_id: The org's **string** identifierCOMMENT
LOWbackend/notification_v2/notification_dispatch.py81 # DEAD_LETTER and ``raise_on_final_failure`` is never even read. TheCOMMENT
LOWbackend/notification_v2/internal_api_views.py641 status=BufferStatus.SENDING.value,COMMENT
LOW…nd/notification_v2/tests/test_notification_dispatch.py81 # enqueue_task types org_id as str; a deleted org must not put None on theCOMMENT
LOWbackend/backend/flowerconfig.py1# Flower is a real-time web based monitor and administration toolCOMMENT
120 more matches not shown…
Verbosity Indicators67 hits · 129 pts
SeverityFileLineSnippetContext
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx350 // Step 1: Export toolCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx365 // Step 2: Create workflow with unique name based on API deployment nameCOMMENT
LOW⚡…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx379 // Step 3: Configure endpoints with API connection typeCOMMENT
LOW⚡…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx382 // Step 4: Add tool instance to workflowCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx398 // Step 5: Update tool instance with proper metadataCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx423 // Step 6: Create API deploymentCOMMENT
LOW⚡.claude/skills/worktree/worktree-setup.sh106# Step 2: Copy gitignored backend settingsCOMMENT
LOW⚡.claude/skills/worktree/worktree-setup.sh159# Step 3: Copy project-local Claude skills (gitignored ones)COMMENT
LOW⚡backend/workflow_manager/internal_views.py1292 # Step 2: Build OR conditions for file matching: (uuid1 AND path1) OR (uuid2 AND path2) OR ...COMMENT
LOW⚡backend/workflow_manager/internal_views.py1299 # Step 3: Execute bulk query on workflow_file_executions from active workflow executions onlyCOMMENT
LOW⚡backend/workflow_manager/internal_views.py1377 # Step 2: Extract UUIDs for IN queryCOMMENT
LOW⚡backend/workflow_manager/internal_views.py1380 # Step 3: Execute bulk query on workflow_file_executions from active workflow executions onlyCOMMENT
LOW⚡backend/workflow_manager/internal_views.py2029 # Step 1: Get source configuration with graceful error handlingCOMMENT
LOW⚡backend/workflow_manager/internal_views.py2032 # Step 2: Get destination configuration with graceful error handlingCOMMENT
LOW⚡backend/workflow_manager/internal_views.py2037 # Step 3: Build comprehensive workflow definition using dataclassesCOMMENT
LOWbackend/workflow_manager/internal_views.py1272 # Step 1: Get ACTIVE workflow executions for this workflowCOMMENT
LOWbackend/workflow_manager/internal_views.py1357 # Step 1: Get ACTIVE workflow executions for this workflowCOMMENT
LOW⚡…ation-connectors/test_destination_connector_mariadb.py416 # # Step 1: Create a legacy table manually (simulating old table structure)COMMENT
LOW⚡…ation-connectors/test_destination_connector_mariadb.py420 # Step 2: Verify table is detected as legacyCOMMENT
LOW⚡…ation-connectors/test_destination_connector_mariadb.py425 # Step 3: Trigger migration using the real migration flowCOMMENT
LOW⚡…ation-connectors/test_destination_connector_mariadb.py429 # Step 4: Verify migration was successfulCOMMENT
LOW⚡…ation-connectors/test_destination_connector_mariadb.py433 # Step 5: Test dual column writing (legacy + v2)COMMENT
LOW⚡backend/tenant_account_v2/tests.py297 # Step 1: the sole owner departs — the carve-out keeps the (nowCOMMENT
LOW⚡backend/tenant_account_v2/tests.py304 # Step 2: an org admin later adds a live co-owner, who then departs.COMMENT
LOW⚡backend/dashboard_metrics/services.py869 # Step 1: Get deployment names and execution filterCOMMENT
LOW⚡backend/dashboard_metrics/services.py876 # Step 2: Get executions with status and timestampCOMMENT
LOW⚡backend/dashboard_metrics/services.py893 # Step 3: Build exec->deployment mapping and statsCOMMENT
LOW⚡backend/dashboard_metrics/services.py898 # Step 4: Query LLM usageCOMMENT
LOWbackend/dashboard_metrics/services.py917 # Step 5: Query pages and aggregate usageCOMMENT
LOWbackend/dashboard_metrics/services.py928 # Step 6: Build results sorted by total_tokens descendingCOMMENT
LOW⚡workers/file_processing/tasks.py324 # Step 1: Validate and parse input dataCOMMENT
LOW⚡workers/file_processing/tasks.py327 # Step 2: Setup execution context. The terminal guard inside it may skip aCOMMENT
LOW⚡workers/file_processing/tasks.py341 # Step 3: Handle manual review logicCOMMENT
LOW⚡workers/file_processing/tasks.py344 # Step 4: Pre-create file executionsCOMMENT
LOW⚡workers/file_processing/tasks.py347 # Step 5: Process individual filesCOMMENT
LOW⚡workers/file_processing/tasks.py350 # Step 7: Compile and return final resultCOMMENT
LOW⚡workers/tests/test_plugin_migration_regression.py429 # Step 1: "Discover" a cloud executor via entry pointCOMMENT
LOW⚡workers/tests/test_plugin_migration_regression.py442 # Step 2: Verify registrationCOMMENT
LOW⚡workers/tests/test_plugin_migration_regression.py445 # Step 3: Dispatch via a fake executor transportCOMMENT
LOW⚡workers/tests/test_plugin_migration_regression.py460 # Step 4: Verify resultCOMMENT
LOW⚡workers/tests/test_plugin_migration_regression.py464 # Step 5: Verify queue routingCOMMENT
LOWworkers/scheduler/tasks.py135 # Step 1: Create workflow execution via internal API using dataclassCOMMENT
LOWworkers/scheduler/tasks.py165 # Step 2: Trigger async workflow executionCOMMENT
LOWworkers/shared/processing/file_discovery.py596 # Step 1: Collect and sort all files (load into memory)COMMENT
LOWworkers/shared/processing/file_discovery.py624 # Step 2: Process in chunks with FilterPipelineCOMMENT
LOW⚡workers/shared/processing/files/processor.py603 # Step 2: Check file history (if enabled)COMMENT
LOW⚡workers/shared/processing/files/processor.py611 # Step 3: Execute workflow processing (always run tools first)COMMENT
LOW⚡workers/shared/processing/files/processor.py628 # Step 5: Tool execution completed - destination processing will handle routingCOMMENT
LOWworkers/shared/processing/files/processor.py557 # Step 1: Check if file is already executed (cached)COMMENT
LOWworkers/shared/workflow/connectors/source.py374 # Step 1: Get ALL active workflow executions (matching backend _get_active_workflow_executions)COMMENT
LOW⚡workers/shared/workflow/connectors/source.py409 # Step 2: For each active execution, get file executions (matching backend loop)COMMENT
LOW⚡workers/shared/workflow/execution/service.py153 # Step 1: Setup & ValidationCOMMENT
LOW⚡workers/shared/workflow/execution/service.py275 # Step 3: Process Output - Let destination handle EVERYTHINGCOMMENT
LOW⚡workers/shared/workflow/execution/service.py781 # Step 1: Compile workflowCOMMENT
LOW⚡workers/shared/workflow/execution/service.py785 # Step 2: Prepare input file and metadataCOMMENT
LOW⚡workers/shared/workflow/execution/service.py849 # Step 3: Build and execute workflowCOMMENT
LOWworkers/shared/workflow/execution/service.py106 # Step 0: Check if file execution is already completed (resume capability)COMMENT
LOWworkers/shared/workflow/execution/service.py180 # Step 2: Execute WorkflowCOMMENT
LOWworkers/shared/workflow/execution/service.py351 # Step 4: Build Final ResultCOMMENT
LOW⚡workers/executor/executors/legacy_executor.py500 # Step 2: Optional summarizeCOMMENT
7 more matches not shown…
AI Slop Vocabulary27 hits · 63 pts
SeverityFileLineSnippetContext
MEDIUM⚡backend/workflow_manager/internal_views.py2037 # Step 3: Build comprehensive workflow definition using dataclassesCOMMENT
MEDIUMbackend/workflow_manager/internal_views.py119 # Build comprehensive contextCOMMENT
MEDIUMbackend/workflow_manager/internal_views.py304 # Build comprehensive source configCOMMENT
MEDIUMbackend/workflow_manager/internal_views.py455 # Build comprehensive destination configCOMMENT
MEDIUM⚡backend/workflow_manager/workflow_v2/execution.py176 # Delegate to the model method, which owns the single, robust terminal-one-wayCOMMENT
MEDIUMbackend/workflow_manager/workflow_v2/views.py421 # Build comprehensive contextCOMMENT
MEDIUMbackend/backend/internal_base_urls.py24 """Internal API root endpoint with comprehensive documentation."""STRING
MEDIUM…t_studio/prompt_studio_core_v2/prompt_studio_helper.py2823 """Export project settings as a comprehensive JSON structure.STRING
MEDIUMbackend/usage_v2/helper.py302 """Get comprehensive trial usage statistics for an organization.STRING
MEDIUMbackend/usage_v2/views.py100 """Retrieves comprehensive trial usage statistics for the current organization.STRING
MEDIUM⚡…r_v2/management/commands/manage_deprecated_adapters.py251 """Generate comprehensive deprecation report."""STRING
MEDIUMworkers/tests/test_orchestration_idempotency.py90 # globals is simply robust to either loading.COMMENT
MEDIUM⚡workers/tests/test_barrier.py650 # match a misconfigured-harness ``AssertionError`` or anyCOMMENT
MEDIUM⚡workers/tests/test_barrier.py652 # harness misconfiguration as a passing assertion.COMMENT
MEDIUMworkers/shared/clients/base_client.py248 """Enhanced HTTP request with robust error handling and retry logic.STRING
LOW⚡workers/shared/cache/cache_decorator.py129 # No cache available, just call the methodCOMMENT
LOW⚡workers/shared/cache/cache_decorator.py133 # If anything goes wrong with caching, just call the original methodCOMMENT
MEDIUMworkers/shared/processing/file_discovery.py225 # Log comprehensive metricsCOMMENT
MEDIUMworkers/shared/processing/file_discovery.py578 # Metrics tracking for comprehensive analysisCOMMENT
MEDIUMworkers/shared/processing/file_discovery.py609 # Log comprehensive metrics even for empty resultsCOMMENT
MEDIUMworkers/shared/processing/file_discovery.py636 # Log comprehensive metricsCOMMENT
MEDIUMworkers/shared/processing/files/utils.py24 """Standardized file hash conversion with comprehensive error handling.STRING
MEDIUMworkers/shared/workflow/execution/service.py85 """Execute workflow with clean, linear flow and comprehensive result propagation."""STRING
MEDIUMworkers/shared/api/internal_client.py1495 """Enhanced HTTP request with robust error handling and retry logic."""STRING
MEDIUMworkers/shared/infrastructure/monitoring/health.py265 """Run all health checks and return comprehensive health report.STRING
LOWworkers/shared/infrastructure/caching/cache_utils.py533 # For now, just call the function (can be enhanced with specific caching logic)COMMENT
MEDIUMworkers/callback/tasks.py1199 # Create comprehensive resultCOMMENT
AI Structural Patterns38 hits · 32 pts
SeverityFileLineSnippetContext
LOWrunner/src/unstract/runner/controller/run.py38CODE
LOWrunner/src/unstract/runner/controller/run.py58CODE
LOWbackend/workflow_manager/endpoint_v2/database_utils.py83CODE
LOWbackend/workflow_manager/workflow_v2/workflow_helper.py309CODE
LOWbackend/workflow_manager/workflow_v2/workflow_helper.py570CODE
LOWbackend/workflow_manager/workflow_v2/execution.py36CODE
LOWbackend/workflow_manager/workflow_v2/execution.py125CODE
LOWbackend/middleware/exception.py93CODE
LOWbackend/pg_queue/producer.py103CODE
LOWbackend/pg_queue/tests/test_mirror_pg_periodic_tasks.py41CODE
LOWbackend/api_v2/deployment_helper.py184CODE
LOWbackend/account_v2/serializer.py42CODE
LOWbackend/account_v2/serializer.py55CODE
LOWbackend/account_v2/serializer.py75CODE
LOWworkers/notification/tasks.py239CODE
LOWworkers/queue_backend/pg_queue/consumer.py275CODE
LOWworkers/queue_backend/pg_queue/task_payload.py28CODE
LOWworkers/tests/test_answer_prompt.py21CODE
LOWworkers/tests/test_answer_prompt.py50CODE
LOWworkers/shared/clients/webhook_client.py51CODE
LOWworkers/shared/clients/file_client.py767CODE
LOWworkers/shared/clients/execution_client.py265CODE
LOWworkers/shared/api/internal_client.py600CODE
LOWworkers/shared/api/internal_client.py1094CODE
LOWworkers/shared/api/internal_client.py1232CODE
LOWworkers/shared/infrastructure/database/utils.py147CODE
LOWworkers/executor/executors/answer_prompt.py267CODE
LOWworkers/executor/executors/answer_prompt.py360CODE
LOW…stract/flags/flipt_grpc/flipt/flipt_simple_pb2_grpc.py54CODE
LOW…pt_grpc/flipt/evaluation/evaluation_simple_pb2_grpc.py86CODE
LOW…pt_grpc/flipt/evaluation/evaluation_simple_pb2_grpc.py115CODE
LOW…pt_grpc/flipt/evaluation/evaluation_simple_pb2_grpc.py144CODE
LOWunstract/core/src/unstract/core/pubsub_helper.py79CODE
LOWunstract/sdk1/src/unstract/sdk1/index.py223CODE
LOWunstract/sdk1/src/unstract/sdk1/llm.py219CODE
LOWunstract/sdk1/src/unstract/sdk1/llm.py1357CODE
LOW…tract/tool-sandbox/src/unstract/tool_sandbox/helper.py663CODE
LOW…tract/tool-sandbox/src/unstract/tool_sandbox/helper.py680CODE
Cross-Language Confusion6 hits · 28 pts
SeverityFileLineSnippetContext
HIGHtests/rig/cli.py1126 `cd workdir && pytest <paths>` does not pin config to workdir — pytest walksSTRING
HIGHbackend/api_v2/postman_collection/dto.py198 "let response = null;",CODE
HIGHbackend/api_v2/postman_collection/dto.py204 "if (response && response.message && response.message.execution_id) {", # noqa: E501CODE
HIGH…/prompt_studio/prompt_studio_core_v2/internal_views.py130 "profile_manager_id": str | null,STRING
HIGHworkers/queue_backend/pg_barrier.py899 " results = results || jsonb_build_array(%s::jsonb), "CODE
HIGHworkers/tests/test_executor_dispatch.py127 # org_id=None must serialise to JSON null, not get dropped orCOMMENT
Fake / Example Data9 hits · 10 pts
SeverityFileLineSnippetContext
LOWbackend/tenant_account_v2/tests.py81 self.admin = _make_user("admin@example.com")CODE
LOWbackend/permissions/tests/base.py134 self.admin = make_user("admin@example.com")CODE
LOW…_studio/prompt_studio_registry_v2/tests/test_models.py41 self.admin = _make_user("admin@example.com")CODE
LOW⚡backend/account_v2/tests.py45 self.admin = _make_member(self.org, "admin@example.com", UserRole.ADMIN.value)CODE
LOW⚡backend/account_v2/tests.py60 member = _make_member(self.org, "user@example.com", UserRole.USER.value)CODE
LOW⚡workers/tests/test_answer_prompt.py948 custom_data={"company_name": "Acme Inc"},CODE
LOWworkers/tests/test_answer_prompt.py371 response2.text = "user@example.com"CODE
LOWworkers/tests/test_answer_prompt.py387 assert result.data[PSKeys.OUTPUT]["field_a"] == "user@example.com"CODE
LOW…onnectors/databases/postgresql/static/json_schema.json54 "placeholder": "Enter schema (optional)"CODE
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippetContext
LOWdocker/sample.compose.override.yaml3# Usage:COMMENT
LOWdocker/compose.debug.yaml3# Usage:COMMENT
LOWdocker/scripts/resolve_container_svc_from_host.sh6# Usage:COMMENT
LOWdocker/scripts/merge_env.py2# Usage:COMMENT
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…rc/components/deployments/display-code/DisplayCode.jsx61 print('Response:', response.json())CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOW⚡…tool-sandbox/src/unstract/tool_sandbox/tool_sandbox.py44 # make sure to return str instead of UUIdCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWunstract/sdk1/tests/test_stream_connection_release.py220 def handle_request(CODE