Repository Analysis

Zipstack/unstract

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

30.2 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Zipstack/unstract, a Python project with 7,179 GitHub stars. SynthScan v2.0 examined 338,540 lines of code across 2131 source files, recording 7489 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 30.2 places this repository in the Strong AI signal band.

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

30.2
Adjusted Score
30.2
Raw Score
100%
Time Factor
2026-08-28
Last Push
7.2K
Stars
Python
Language
338.5K
Lines of Code
2.1K
Files
7.5K
Pattern Hits
2026-08-29
Scan Date
0.12
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 21HIGH 241MEDIUM 536LOW 6691

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers3788 hits · 3878 pts
SeverityFileLineSnippetContext
LOWtools/classifier/src/helper.py54 def copy_source_to_output_bin(CODE
LOW…d/src/components/custom-tools/pdf-viewer/PdfViewer.jsx86 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.jsx73 function getAndUpdateFiles(path) {CODE
LOW…deployments/api-deployment/ApiDeploymentCardConfig.jsx28function createApiDeploymentCardConfig({CODE
LOWfrontend/src/pages/UnstractAdministrationPage.jsx16function UnstractAdministrationPage() {CODE
LOWfrontend/src/pages/GlobalApiDeploymentKeysPage.jsx3function GlobalApiDeploymentKeysPage() {CODE
LOWrunner/tests/test_sidecar_log_transport.py53 def test_defaults_to_celery_when_unset(self, sidecar_env, monkeypatch):CODE
LOWrunner/tests/test_sidecar_log_transport.py60 def test_forwards_redis_transport_to_the_sidecar(self, sidecar_env):CODE
LOWrunner/tests/test_sidecar_log_transport.py64 def test_forwards_the_stream_queue_name(self, sidecar_env):CODE
LOWrunner/tests/test_sidecar_log_transport.py70 def test_redis_credentials_are_already_present(self, sidecar_env):CODE
LOWrunner/tests/test_sidecar_log_transport.py81 def test_celery_broker_still_forwarded_for_the_flag_off_path(self, sidecar_env):CODE
LOWrunner/src/unstract/runner/runner.py217 def _get_sidecar_container_config(CODE
LOWrunner/src/unstract/runner/runner.py345 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.py310def _validate_dep_targets_exist(groups: dict[str, GroupDefinition]) -> None:CODE
LOWtests/rig/groups.py331def _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.py1045def _write_synthetic_junit_safe(path: Path, group_name: str, exit_code: int) -> None:CODE
LOWtests/rig/cli.py1083def _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
LOWtests/rig/tests/test_reporting.py84def test_malformed_xml_returns_error_result(tmp_path: Path) -> None:CODE
LOWtests/rig/tests/test_reporting.py91def test_missing_junit_returns_none(tmp_path: Path) -> None:CODE
LOWtests/rig/tests/test_reporting.py100def test_status_icon_round_trips() -> None:CODE
LOWtests/rig/tests/test_reporting.py109def test_blocked_result_is_never_green() -> None:CODE
LOWtests/rig/tests/test_reporting.py117def test_blocked_result_rejects_nonzero_counters() -> None:CODE
LOWtests/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
LOWtests/rig/tests/test_runtime.py18def test_infra_endpoints_rejects_partial_redis_pair() -> None:CODE
LOWtests/rig/tests/test_runtime.py28def test_infra_endpoints_rejects_partial_rabbitmq_pair() -> None:CODE
LOWtests/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
LOWtests/rig/tests/test_runtime.py76def test_extra_compose_files_empty_when_unset(monkeypatch) -> None:CODE
LOWtests/rig/tests/test_runtime.py81def test_extra_compose_files_reads_existing_paths(monkeypatch, tmp_path) -> None:CODE
LOWtests/rig/tests/test_runtime.py91def test_extra_compose_files_rejects_missing(monkeypatch, tmp_path) -> None:CODE
LOWtests/rig/tests/test_runtime.py140def test_down_uses_config_snapshot_after_overlay_removed(monkeypatch, tmp_path) -> None:CODE
LOWtests/rig/tests/test_runtime.py153def test_down_sweeps_volumes_when_snapshot_failed(monkeypatch, tmp_path) -> None:CODE
LOWtests/rig/tests/test_runtime.py172def test_login_provider_defaults_to_oss(monkeypatch) -> None:CODE
LOWtests/rig/tests/test_runtime.py177def test_login_provider_resolves_dotted_path(monkeypatch) -> None:CODE
LOWtests/rig/tests/test_runtime.py184def test_login_provider_rejects_bare_name(monkeypatch) -> None:CODE
3728 more matches not shown…
Decorative Section Separators365 hits · 1380 pts
SeverityFileLineSnippetContext
MEDIUMtox.ini71# ── Legacy aliases ─────────────────────────────────────────────────────────────COMMENT
MEDIUMdocker/docker-compose.yaml206 # ====================================================================COMMENT
MEDIUMdocker/docker-compose.yaml208 # ====================================================================COMMENT
MEDIUMdocker/docker-compose.yaml546 # ===========================================================================COMMENT
MEDIUMdocker/docker-compose.yaml560 # ===========================================================================COMMENT
MEDIUMtests/groups.yaml48 # ── Unit tier: pure pytest, no external services ───────────────────────────COMMENT
MEDIUMtests/groups.yaml129 # ── Integration tier: needs infra but not full platform ────────────────────COMMENT
MEDIUMtests/groups.yaml175 # ── E2E tier: real HTTP against running platform ───────────────────────────COMMENT
MEDIUMtests/rig/cli.py226# ── subcommands ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/rig/cli.py770# ── execution helpers ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/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
MEDIUMbackend/workflow_manager/workflow_v2/views.py658# =============================================================================COMMENT
MEDIUMbackend/workflow_manager/workflow_v2/views.py660# =============================================================================COMMENT
MEDIUMbackend/workflow_manager/workflow_v2/views.py394# =============================================================================COMMENT
MEDIUMbackend/workflow_manager/workflow_v2/views.py396# =============================================================================COMMENT
MEDIUMbackend/tenant_account_v2/sharing_helpers.py347# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/tenant_account_v2/sharing_helpers.py349# ---------------------------------------------------------------------------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.py522 # ------------------------------------------------------------------COMMENT
MEDIUM…t_studio/prompt_studio_core_v2/prompt_studio_helper.py524 # ------------------------------------------------------------------COMMENT
MEDIUMbackend/usage_v2/tests/test_helper.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/usage_v2/tests/test_helper.py40# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/usage_v2/tests/test_helper.py89# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/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.py66# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py69# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py122# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py124# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py213# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py215# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py585# -----------------------------------------------------------------------COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py587# -----------------------------------------------------------------------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
MEDIUMworkers/tests/test_line_item_extraction.py173# ---------------------------------------------------------------------------COMMENT
MEDIUMworkers/tests/test_line_item_extraction.py175# ---------------------------------------------------------------------------COMMENT
MEDIUMworkers/tests/test_line_item_extraction.py200# ---------------------------------------------------------------------------COMMENT
305 more matches not shown…
Excessive Try-Catch Wrapping1140 hits · 1069 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.py299 except Exception as e:CODE
LOWrunner/src/unstract/runner/runner.py383 except Exception as e:CODE
LOWrunner/src/unstract/runner/runner.py517 except Exception as e:CODE
LOWrunner/src/unstract/runner/runner.py573 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.py355 except Exception:CODE
LOWtests/rig/runtime.py367 except Exception as exc:CODE
MEDIUMtests/rig/runtime.py230def _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
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.py346 except Exception as e:CODE
LOWbackend/workflow_manager/internal_api_views.py386 except Exception as e:CODE
LOWbackend/workflow_manager/internal_api_views.py448 except Exception as e:CODE
LOWbackend/workflow_manager/internal_api_views.py455 except Exception as e:CODE
LOWbackend/workflow_manager/internal_views.py104 except Exception as e:CODE
LOWbackend/workflow_manager/internal_views.py172 except Exception:CODE
LOWbackend/workflow_manager/internal_views.py197 except Exception as e:CODE
LOWbackend/workflow_manager/internal_views.py300 except Exception as source_error:CODE
LOWbackend/workflow_manager/internal_views.py327 except Exception as e:CODE
LOWbackend/workflow_manager/internal_views.py420 except Exception as endpoint_error:CODE
LOWbackend/workflow_manager/internal_views.py451 except Exception as source_error:CODE
LOWbackend/workflow_manager/internal_views.py480 except Exception as e:CODE
LOWbackend/workflow_manager/internal_views.py508 except Exception as e:CODE
1080 more matches not shown…
Docstring Block Structure126 hits · 630 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.py397Get celery task status. Args: execution_id (str): workflow execution id Raises: STRING
HIGHbackend/workflow_manager/workflow_v2/workflow_helper.py1244Validates 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.py30Validate execution count parameter is a non-negative integer. Args: value: The value to validate STRING
HIGHbackend/workflow_manager/workflow_v2/views.py229Retrieve 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.py170Validate 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.py329Validate 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.py1603Execute 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.py1939Utility function to invoke prompt service. Used internally. Args: tool (CustomTool): CustomTool insSTRING
HIGHbackend/prompt_studio/prompt_studio_core_v2/views.py407API 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.py85Generic Function to get adapter data with provided key. Args: adapter_id: The SDK identifier for thSTRING
HIGHbackend/adapter_processor_v2/adapter_processor.py272Get 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
HIGHworkers/notification/tasks.py72Universal notification processor. This task routes notifications to the appropriate provider based on type. It STRING
HIGHworkers/notification/tasks.py240Backward 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.py440Validate and parse input data into typed dataclass. Args: file_batch_data: Raw input dictionary ReturnSTRING
HIGHworkers/file_processing/tasks.py475Setup 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.py271Enhanced 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
HIGHworkers/shared/patterns/retry/utils.py188Execute function with circuit breaker protection. Args: func: Function to execute *argsSTRING
66 more matches not shown…
Cross-File Repetition108 hits · 540 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/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
HIGHworkers/tests/test_extraction_pipeline_contracts.py0run execute_extraction task via task.apply() (eager-safe).STRING
HIGHworkers/tests/test_executor_sanity.py0run execute_extraction task via task.apply() (eager-safe).STRING
HIGHworkers/tests/test_dispatch_with_callback.py0run execute_extraction task via task.apply() (eager-safe).STRING
HIGHworkers/executor/executors/retrievers/automerging.py0retrieve text chunks using llamaindex's native keywordtableindex. returns: set[str]: a set of text chunks retrieved fromSTRING
HIGHworkers/executor/executors/retrievers/recursive.py0retrieve text chunks using llamaindex's native keywordtableindex. returns: set[str]: a set of text chunks retrieved fromSTRING
48 more matches not shown…
Unused Imports545 hits · 522 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…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
LOWbackend/workflow_manager/workflow_v2/transport.py30CODE
LOW…end/workflow_manager/workflow_v2/undispatched_sweep.py40CODE
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
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
LOW…l_instance_v2/tests/test_challenge_llm_seed_overlay.py32CODE
LOWbackend/tenant_account_v2/apps.py9CODE
LOWbackend/tenant_account_v2/apps.py9CODE
485 more matches not shown…
Modern Structural Boilerplate487 hits · 493 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
LOWrunner/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.py937 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.py10logger = 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.py64logger = logging.getLogger(__name__)CODE
LOWbackend/workflow_manager/workflow_v2/workflow_helper.py428 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/transport.py44logger = logging.getLogger(__name__)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.py49logger = 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.py16logger = 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.py68logger = 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.py571 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
LOWbackend/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
427 more matches not shown…
Redundant / Tautological Comments184 hits · 281 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
LOWdocker/scripts/uv-lock-gen/uv-lock.sh23# Check if a directory's own pyproject.toml or any of its localCOMMENT
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.py116 # Check if cost data is requested (expensive operation)COMMENT
LOWbackend/workflow_manager/internal_views.py220 # Check if pipeline_id references a Pipeline or APIDeployment (like serializer)COMMENT
LOWbackend/workflow_manager/internal_views.py234 # Check if it's an APIDeployment (like serializer does)COMMENT
LOWbackend/workflow_manager/internal_views.py409 # Check if workflow has API deploymentsCOMMENT
LOWbackend/workflow_manager/internal_views.py2299 # Check if this is a regular pipeline (ETL/TASK/APP)COMMENT
LOWbackend/workflow_manager/internal_views.py2866 # 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.py1409 # Check if file already has completed historyCOMMENT
LOW…ckend/workflow_manager/workflow_v2/models/execution.py557 # 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
LOWbackend/tool_instance_v2/serializers.py310 # Check if the workflow existsCOMMENT
LOWbackend/tool_instance_v2/serializers.py316 # Check if the number of tool instances matches the actual countCOMMENT
LOWbackend/tool_instance_v2/serializers.py326 # 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.py200 # Check if the file type is in the allowed listCOMMENT
LOW…tils/file_storage/helpers/prompt_studio_file_helper.py187 # 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.py29 # 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.py160 # Check if this workflow already has an active API deploymentCOMMENT
LOWbackend/api_v2/serializers.py287 # Check if HITL feature is availableCOMMENT
LOWbackend/api_v2/serializers.py409 # Check if profile existsCOMMENT
LOWbackend/api_v2/serializers.py444 # Check if the profile owner matches the API key ownerCOMMENT
LOWbackend/api_v2/serializers.py469 # 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
124 more matches not shown…
Hallucination Indicators21 hits · 245 pts
SeverityFileLineSnippetContext
CRITICAL…nager/workflow_v2/tests/test_record_dispatch_handle.py119 model.objects.filter.return_value.update.assert_called_once_with(CODE
CRITICAL…nager/workflow_v2/tests/test_record_dispatch_handle.py140 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.py255 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…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
CRITICALbackend/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
Modern AI Meta-Vocabulary63 hits · 220 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md249- [Unstract + Crew.AI](https://unstract.com/blog/agentic-document-extraction-processing-with-unstract-crew-ai/)CODE
MEDIUMdocker/docker-compose.yaml584 # bounded-minutes orchestration, and idempotency-guarded (UN-3671) so a vtCOMMENT
MEDIUMdocker/docker-compose.yaml585 # overrun can't double-orchestrate. Without an explicit vt the consumerCOMMENT
MEDIUMbackend/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
MEDIUMbackend/pg_queue/models.py551 # deliberately never deleted at barrier finalise (there is no orchestration-COMMENT
MEDIUMbackend/pg_queue/models.py553 # post-completion redelivery from re-orchestrating. Only the reaper'sCOMMENT
MEDIUMbackend/pg_queue/models.py562 # When the orchestration was claimed. The reaper's sweep_orphan_claims gates onCOMMENT
MEDIUMbackend/pg_queue/models.py564 # just-claimed live orchestration that hasn't armed its barrier is left alone).COMMENT
MEDIUM…t_studio/prompt_studio_core_v2/prompt_studio_helper.py2779 # Enrich with cloud-only per-prompt settings (table / agentic-table)COMMENT
MEDIUM…pt_studio_registry_v2/prompt_studio_registry_helper.py215 # A UUID-shaped tool_id with no registry row - e.g. an agentic toolCOMMENT
MEDIUMbackend/adapter_processor_v2/serializers.py108 # Only retrieve context window and icon for available adaptersCOMMENT
MEDIUMbackend/adapter_processor_v2/serializers.py111 # Retrieve context window if adapter is a LLMCOMMENT
MEDIUMworkers/general/tasks.py251 # Tracks whether THIS delivery won the PG orchestration claim, so theCOMMENT
MEDIUMworkers/general/tasks.py258 # redelivered orchestration no-ops here BEFORE any setup, barrier arm,COMMENT
MEDIUMworkers/general/tasks.py259 # or batch dispatch — so exactly one delivery orchestrates theCOMMENT
MEDIUMworkers/general/tasks.py420 # Release the orchestration claim so a redelivery/retry canCOMMENT
MEDIUMworkers/general/tasks.py421 # re-orchestrate. The claim is taken before the work, so without this aCOMMENT
MEDIUMworkers/general/tasks.py309 # PG redelivery guard (defense-in-depth): the orchestration claimCOMMENT
MEDIUMworkers/general/tasks.py310 # tombstone normally blocks re-orchestrating a COMPLETED execution, butCOMMENT
MEDIUMworkers/general/tasks.py376 # Calculate orchestration time (not total execution time - callback worker calculates that)COMMENT
MEDIUMworkers/general/tasks.py688 # For ETL/TASK workflows, we use file processing orchestrationCOMMENT
MEDIUMworkers/general/tasks.py848 # Use orchestration method that creates chord and returns immediatelyCOMMENT
MEDIUMworkers/general/tasks.py863 # The orchestration result contains the chord_id and batch informationCOMMENT
MEDIUMworkers/general/tasks.py177 return False # first delivery — this replica owns the orchestrationCODE
MEDIUMworkers/file_processing/structure_tool_task.py293 # ---- Route agentic vs regular ----COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py555 # All-agentic case: skip the legacy pipeline entirely.COMMENT
MEDIUMworkers/file_processing/structure_tool_task.py631 # Try agentic registryCOMMENT
MEDIUMworkers/file_processing/structure_tool_task.py704 # 1. Unpack agentic project metadata (matches registry_helper export format)COMMENT
MEDIUMworkers/queue_backend/pg_barrier.py471 # double-orchestration window this guard exists to close.COMMENT
MEDIUMworkers/queue_backend/pg_queue/consumer.py137# orchestration claim is taken (a circuit-breaker-open drop, or repeated pre-claimCOMMENT
MEDIUMworkers/queue_backend/pg_queue/reaper.py852 # (A terminal execution's orchestration message was acked on completion orCOMMENT
MEDIUMworkers/queue_backend/pg_queue/reaper.py853 # on the first skip-redelivery, so there is nothing left to re-orchestrateCOMMENT
MEDIUMworkers/queue_backend/pg_queue/reaper.py871 # marking, so a slow orchestration that just armed its barrier (or a freshCOMMENT
MEDIUMworkers/queue_backend/pg_queue/reaper.py1345 # Orphan orchestration-claim GC + crash-window recovery. RunsCOMMENT
MEDIUMworkers/tests/test_orchestration_idempotency.py58 # proceed would double-orchestrate, a swallow-and-skip would silently drop aCOMMENT
MEDIUMworkers/tests/test_orchestration_idempotency.py314 # re-orchestrate (this is what stops a transient failure permanentlyCOMMENT
MEDIUMworkers/tests/test_orchestration_idempotency.py330 # orchestration must resolve to exactly one True. Force the contendedCOMMENT
MEDIUMworkers/tests/test_orchestration_idempotency.py151 # redelivery/retry can re-orchestrate.COMMENT
MEDIUMworkers/tests/test_orchestration_idempotency.py177 # 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
MEDIUMworkers/tests/test_pg_orchestration_failure.py76 # original orchestration exception or skip its re-raise.COMMENT
MEDIUMworkers/tests/test_agentic_operations.py139# 4. LegacyExecutor does NOT handle agentic operationsCOMMENT
MEDIUMworkers/tests/test_agentic_operations.py190# 5. Structure tool routes to agentic executorCOMMENT
MEDIUMworkers/tests/test_agentic_operations.py235# 6. tasks.py log_component for agentic operationsCOMMENT
MEDIUMworkers/tests/test_single_pass_extraction.py323# 3. agentic operations — handled by AgenticPromptStudioExecutor (cloud)COMMENT
MEDIUMworkers/tests/test_plugin_migration_regression.py404 # Both legacy and agentic contexts can create instancesCOMMENT
MEDIUMworkers/tests/test_plugin_migration_regression.py174 assert len(Operation) == 19 # 7 legacy + 2 table + 2 sps + 8 agenticCODE
MEDIUMworkers/tests/test_structure_tool_pipeline.py442 # Prompt studio lookup fails, agentic succeedsCOMMENT
MEDIUMworkers/tests/test_structure_tool_pipeline.py464 # Simulate successful agentic extractionCOMMENT
MEDIUMworkers/tests/test_structure_tool_pipeline.py473 # Should dispatch to agentic executor with agentic_extract operationCOMMENT
MEDIUMworkers/api-deployment/tasks.py426 # the failure handler can rely on it even if orchestration fails before theCOMMENT
MEDIUMworkers/api-deployment/tasks.py435 # TOOL VALIDATION: Validate tool instances before API workflow orchestrationCOMMENT
MEDIUMworkers/api-deployment/tasks.py444 # TOOL VALIDATION: Validate tool instances before API workflow orchestrationCOMMENT
MEDIUMworkers/api-deployment/tasks.py232 # Validate orchestration parametersCOMMENT
MEDIUMworkers/api-deployment/tasks.py239 # Execute workflow through direct API orchestrationCOMMENT
3 more matches not shown…
Self-Referential Comments61 hits · 190 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
MEDIUMrunner/src/unstract/runner/controller/health.py7# Define a Blueprint with a root URL pathCOMMENT
MEDIUMrunner/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.py912 # 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.py80 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUMbackend/scheduler/tasks.py229 # Create a crontab scheduleCOMMENT
MEDIUMbackend/utils/log_events.py51 """This function is called when a client connects to the server.STRING
MEDIUM…tils/file_storage/helpers/prompt_studio_file_helper.py234 """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
MEDIUMbackend/pipeline_v2/views.py255 # Create a PostmanCollection for a PipelineCOMMENT
MEDIUMbackend/prompt_studio/prompt_studio_core_v2/views.py1103 # Create a record in the db for the file (document_name = original filename)COMMENT
MEDIUMbackend/prompt_studio/prompt_studio_core_v2/views.py1107 # Create a dictionary to store document dataCOMMENT
MEDIUMbackend/prompt_studio/prompt_studio_core_v2/views.py1340 # Create a backup copy if requestedCOMMENT
MEDIUMbackend/adapter_processor_v2/serializers.py95 # 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
MEDIUMworkers/tests/test_table_extract_operation.py67 # 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
MEDIUMunstract/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.py343 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUMunstract/sdk1/src/unstract/sdk1/adapters/base1.py755 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUMunstract/sdk1/src/unstract/sdk1/adapters/base1.py873 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUMunstract/sdk1/src/unstract/sdk1/adapters/base1.py1259 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUMunstract/sdk1/src/unstract/sdk1/adapters/base1.py1394 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUMunstract/sdk1/src/unstract/sdk1/adapters/base1.py1562 # Create a copy to avoid mutating the original metadataCOMMENT
MEDIUM…stract/sdk1/adapters/vectordb/weaviate/src/weaviate.py83 # Create the colletionCOMMENT
MEDIUM…dk1/adapters/x2text/llm_whisperer/src/llm_whisperer.py389 # Define the directory of the output file and metadata pathsCOMMENT
1 more matches not shown…
Deep Nesting217 hits · 179 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
LOWbackend/workflow_manager/internal_views.py206CODE
LOWbackend/workflow_manager/internal_views.py333CODE
LOWbackend/workflow_manager/internal_views.py520CODE
LOWbackend/workflow_manager/internal_views.py782CODE
LOWbackend/workflow_manager/internal_views.py951CODE
LOWbackend/workflow_manager/internal_views.py1108CODE
LOWbackend/workflow_manager/internal_views.py1597CODE
LOWbackend/workflow_manager/internal_views.py2067CODE
LOWbackend/workflow_manager/internal_views.py2158CODE
LOWbackend/workflow_manager/internal_views.py2260CODE
LOWbackend/workflow_manager/internal_views.py2365CODE
LOWbackend/workflow_manager/internal_views.py2460CODE
LOWbackend/workflow_manager/utils/pipeline_utils.py17CODE
LOW…kend/workflow_manager/file_execution/internal_views.py272CODE
LOW…kend/workflow_manager/file_execution/internal_views.py410CODE
LOW…kend/workflow_manager/file_execution/internal_views.py506CODE
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.py765CODE
LOWbackend/workflow_manager/workflow_v2/views.py1153CODE
LOWbackend/workflow_manager/workflow_v2/views.py1185CODE
LOWbackend/workflow_manager/workflow_v2/views.py1362CODE
LOWbackend/workflow_manager/workflow_v2/views.py448CODE
LOWbackend/workflow_manager/workflow_v2/views.py494CODE
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.py76CODE
LOWbackend/tool_instance_v2/tool_instance_helper.py433CODE
LOWbackend/tool_instance_v2/tool_instance_helper.py554CODE
LOWbackend/tool_instance_v2/internal_views.py108CODE
LOWbackend/scheduler/ownership.py141CODE
LOWbackend/scheduler/tasks.py275CODE
LOWbackend/utils/cache_service.py48CODE
LOW…tils/file_storage/helpers/prompt_studio_file_helper.py112CODE
LOWbackend/utils/tests/test_list_pagination.py164CODE
LOWbackend/utils/request/request.py19CODE
LOWbackend/notification_v2/internal_views.py412CODE
LOWbackend/backend/internal_base_urls.py58CODE
LOW…_queue/management/commands/mirror_pg_periodic_tasks.py345CODE
LOWbackend/pipeline_v2/serializers/crud.py266CODE
LOWbackend/api_v2/deployment_helper.py184CODE
LOWbackend/api_v2/deployment_helper.py560CODE
LOWbackend/api_v2/exceptions.py137CODE
LOW…t_studio/prompt_studio_core_v2/prompt_studio_helper.py3111CODE
LOW…pt_studio_registry_v2/prompt_studio_registry_helper.py302CODE
LOW…_studio_index_manager_v2/prompt_studio_index_helper.py71CODE
157 more matches not shown…
Structural Annotation Overuse93 hits · 178 pts
SeverityFileLineSnippetContext
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx334 // Step 1: Export toolCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx349 // Step 2: Create workflow with unique name based on API deployment nameCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx363 // Step 3: Configure endpoints with API connection typeCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx366 // Step 4: Add tool instance to workflowCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx382 // Step 5: Update tool instance with proper metadataCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx407 // 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
LOWbackend/workflow_manager/internal_views.py1293 # Step 2: Build OR conditions for file matching: (uuid1 AND path1) OR (uuid2 AND path2) OR ...COMMENT
LOWbackend/workflow_manager/internal_views.py1300 # Step 3: Execute bulk query on workflow_file_executions from active workflow executions onlyCOMMENT
LOWbackend/workflow_manager/internal_views.py1378 # Step 2: Extract UUIDs for IN queryCOMMENT
LOWbackend/workflow_manager/internal_views.py1381 # Step 3: Execute bulk query on workflow_file_executions from active workflow executions onlyCOMMENT
LOWbackend/workflow_manager/internal_views.py2030 # Step 1: Get source configuration with graceful error handlingCOMMENT
LOWbackend/workflow_manager/internal_views.py2033 # Step 2: Get destination configuration with graceful error handlingCOMMENT
LOWbackend/workflow_manager/internal_views.py2038 # Step 3: Build comprehensive workflow definition using dataclassesCOMMENT
LOWbackend/workflow_manager/internal_views.py1273 # Step 1: Get ACTIVE workflow executions for this workflowCOMMENT
LOWbackend/workflow_manager/internal_views.py1358 # 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
LOWbackend/tenant_account_v2/tests.py297 # Step 1: the sole owner departs — the carve-out keeps the (nowCOMMENT
LOWbackend/tenant_account_v2/tests.py304 # Step 2: an org admin later adds a live co-owner, who then departs.COMMENT
LOWbackend/dashboard_metrics/services.py869 # Step 1: Get deployment names and execution filterCOMMENT
LOWbackend/dashboard_metrics/services.py876 # Step 2: Get executions with status and timestampCOMMENT
LOWbackend/dashboard_metrics/services.py893 # Step 3: Build exec->deployment mapping and statsCOMMENT
LOWbackend/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
LOWdocs/API_DEPLOYMENT_RATE_LIMITING.md340# Step 1: Update environment variableCOMMENT
LOWdocs/API_DEPLOYMENT_RATE_LIMITING.md343# Step 2: Restart application to load new settingCOMMENT
LOWdocs/API_DEPLOYMENT_RATE_LIMITING.md346# Step 3: Clear all caches to pick up immediatelyCOMMENT
LOWworkers/file_processing/tasks.py334 # Step 1: Validate and parse input dataCOMMENT
LOWworkers/file_processing/tasks.py337 # Step 2: Setup execution context. The terminal guard inside it may skip aCOMMENT
LOWworkers/file_processing/tasks.py351 # Step 3: Handle manual review logicCOMMENT
LOWworkers/file_processing/tasks.py354 # Step 4: Pre-create file executionsCOMMENT
LOWworkers/file_processing/tasks.py357 # Step 5: Process individual filesCOMMENT
33 more matches not shown…
Verbosity Indicators69 hits · 134 pts
SeverityFileLineSnippetContext
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx334 // Step 1: Export toolCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx349 // Step 2: Create workflow with unique name based on API deployment nameCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx363 // Step 3: Configure endpoints with API connection typeCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx366 // Step 4: Add tool instance to workflowCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx382 // Step 5: Update tool instance with proper metadataCOMMENT
LOW…-prompt-studio/CreateApiDeploymentFromPromptStudio.jsx407 // 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
LOWbackend/workflow_manager/internal_views.py1293 # Step 2: Build OR conditions for file matching: (uuid1 AND path1) OR (uuid2 AND path2) OR ...COMMENT
LOWbackend/workflow_manager/internal_views.py1300 # Step 3: Execute bulk query on workflow_file_executions from active workflow executions onlyCOMMENT
LOWbackend/workflow_manager/internal_views.py1378 # Step 2: Extract UUIDs for IN queryCOMMENT
LOWbackend/workflow_manager/internal_views.py1381 # Step 3: Execute bulk query on workflow_file_executions from active workflow executions onlyCOMMENT
LOWbackend/workflow_manager/internal_views.py2030 # Step 1: Get source configuration with graceful error handlingCOMMENT
LOWbackend/workflow_manager/internal_views.py2033 # Step 2: Get destination configuration with graceful error handlingCOMMENT
LOWbackend/workflow_manager/internal_views.py2038 # Step 3: Build comprehensive workflow definition using dataclassesCOMMENT
LOWbackend/workflow_manager/internal_views.py1273 # Step 1: Get ACTIVE workflow executions for this workflowCOMMENT
LOWbackend/workflow_manager/internal_views.py1358 # 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
LOWbackend/tenant_account_v2/tests.py297 # Step 1: the sole owner departs — the carve-out keeps the (nowCOMMENT
LOWbackend/tenant_account_v2/tests.py304 # Step 2: an org admin later adds a live co-owner, who then departs.COMMENT
LOWbackend/dashboard_metrics/services.py869 # Step 1: Get deployment names and execution filterCOMMENT
LOWbackend/dashboard_metrics/services.py876 # Step 2: Get executions with status and timestampCOMMENT
LOWbackend/dashboard_metrics/services.py893 # Step 3: Build exec->deployment mapping and statsCOMMENT
LOWbackend/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
LOWworkers/file_processing/tasks.py334 # Step 1: Validate and parse input dataCOMMENT
LOWworkers/file_processing/tasks.py337 # Step 2: Setup execution context. The terminal guard inside it may skip aCOMMENT
LOWworkers/file_processing/tasks.py351 # Step 3: Handle manual review logicCOMMENT
LOWworkers/file_processing/tasks.py354 # Step 4: Pre-create file executionsCOMMENT
LOWworkers/file_processing/tasks.py357 # Step 5: Process individual filesCOMMENT
LOWworkers/file_processing/tasks.py360 # Step 7: Compile and return final resultCOMMENT
LOWworkers/tests/test_barrier.py194 # Step 1: chord(header)COMMENT
LOWworkers/tests/test_barrier.py196 # Step 2: chord_obj(callback_signature) — applies the chordCOMMENT
LOWworkers/tests/test_plugin_migration_regression.py423 # Step 1: "Discover" a cloud executor via entry pointCOMMENT
LOWworkers/tests/test_plugin_migration_regression.py436 # Step 2: Verify registrationCOMMENT
LOWworkers/tests/test_plugin_migration_regression.py439 # Step 3: Dispatch via mock CeleryCOMMENT
LOWworkers/tests/test_plugin_migration_regression.py456 # Step 4: Verify resultCOMMENT
LOWworkers/tests/test_plugin_migration_regression.py460 # Step 5: Verify queue routingCOMMENT
LOWworkers/scheduler/tasks.py136 # Step 1: Create workflow execution via internal API using dataclassCOMMENT
LOWworkers/scheduler/tasks.py177 # Step 2: Trigger async workflow execution via direct Celery dispatchCOMMENT
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
LOWworkers/shared/processing/files/processor.py605 # Step 2: Check file history (if enabled)COMMENT
LOWworkers/shared/processing/files/processor.py613 # Step 3: Execute workflow processing (always run tools first)COMMENT
LOWworkers/shared/processing/files/processor.py630 # Step 5: Tool execution completed - destination processing will handle routingCOMMENT
LOWworkers/shared/processing/files/processor.py559 # 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
LOWworkers/shared/workflow/connectors/source.py409 # Step 2: For each active execution, get file executions (matching backend loop)COMMENT
LOWworkers/shared/workflow/execution/service.py154 # Step 1: Setup & ValidationCOMMENT
LOWworkers/shared/workflow/execution/service.py276 # Step 3: Process Output - Let destination handle EVERYTHINGCOMMENT
LOWworkers/shared/workflow/execution/service.py782 # Step 1: Compile workflowCOMMENT
LOWworkers/shared/workflow/execution/service.py786 # Step 2: Prepare input file and metadataCOMMENT
LOWworkers/shared/workflow/execution/service.py850 # Step 3: Build and execute workflowCOMMENT
LOWworkers/shared/workflow/execution/service.py107 # Step 0: Check if file execution is already completed (resume capability)COMMENT
LOWworkers/shared/workflow/execution/service.py181 # Step 2: Execute WorkflowCOMMENT
9 more matches not shown…
Over-Commented Block136 hits · 124 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml61 - id: pyupgradeCOMMENT
LOWtox.ini1[tox]COMMENT
LOWdocker/docker-compose.yaml541 volumes:COMMENT
LOWdocker/docker-compose.yaml741 - ${TOOL_REGISTRY_CONFIG_SRC_PATH}:/data/tool_registry_configCOMMENT
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/scripts/release-notes/print_release_notes.py1# type: ignoreCOMMENT
LOWfrontend/vite.config.js21COMMENT
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/agency/cards-list/CardsList.jsx81 // Get pixels to the topCOMMENT
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/pdfWorkerConfig.js1// Load the worker file from the installed pdfjs-dist packageCOMMENT
LOWfrontend/src/helpers/prismSetup.js1import Prism from "prismjs";COMMENT
LOWtests/critical_paths.yaml1# Unstract critical paths registry.COMMENT
LOWtests/groups.yaml1# Unstract test rig — group definitions.COMMENT
LOWtests/rig/cli.py601 )COMMENT
LOWbackend/pyproject.toml141help = "Runs the Unstract Celery Beat service"COMMENT
LOWbackend/entrypoint.sh21 *) echo "Unknown argument: $1"; exit 1 ;;COMMENT
LOWbackend/entrypoint.sh41 # flag at 0% this moves nothing and Beat keeps every row. A rolling restart therefore can move schedulesCOMMENT
LOWbackend/workflow_manager/internal_views.py541 )COMMENT
LOWbackend/workflow_manager/internal_views.py561 # successful callback (its redelivery is skipped, seeCOMMENT
LOWbackend/workflow_manager/internal_views.py701 # of which 476 had no file rows and 646 had a non-terminal file — 57% permanentCOMMENT
LOWbackend/workflow_manager/internal_views.py741 # "started more than stuck_seconds ago", not "quiet for stuck_seconds" —COMMENT
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.py661 args=dispatch_args,COMMENT
LOWbackend/workflow_manager/workflow_v2/workflow_helper.py1061 # nothing here is transport-gated. With the flag on and the CeleryCOMMENT
LOW…end/workflow_manager/workflow_v2/undispatched_sweep.py61# recorded, message still sitting in the queue" — see the note inCOMMENT
LOW…end/workflow_manager/workflow_v2/undispatched_sweep.py81COMMENT
LOW…end/workflow_manager/workflow_v2/undispatched_sweep.py121COMMENT
LOW…end/workflow_manager/workflow_v2/undispatched_sweep.py261 )COMMENT
LOW…end/workflow_manager/workflow_v2/undispatched_sweep.py281 # skipped_terminal_execution before it would write EXECUTING, andCOMMENT
LOW…ckend/workflow_manager/workflow_v2/models/execution.py241 # the COMPLEMENT of the terminal set: the *index* stays usable if a newCOMMENT
LOWbackend/scheduler/ownership.py41COMMENT
LOWbackend/scheduler/ownership.py161 ``resolve_schedule_owner`` returning False matters: that path would still issueCOMMENT
LOWbackend/scheduler/ownership.py201 was_pg_owned = (COMMENT
LOWbackend/scheduler/ownership.py241 # Beat owns it only when active AND not handed to PG.COMMENT
LOWbackend/scheduler/tasks.py21# ---------------------------------------------------------------------------COMMENT
LOWbackend/scheduler/tasks.py161 # without advancing the "last changed" timestamp.COMMENT
LOWbackend/utils/input_sanitizer.py41 """Validate name/identifier fields - no HTML tags, strip whitespace."""COMMENT
LOWbackend/notification_v2/notification_dispatch.py121 if is_pg_transport(transport):COMMENT
LOWbackend/notification_v2/internal_api_views.py621 webhook_url_hash(url),COMMENT
LOW…nd/notification_v2/tests/test_notification_dispatch.py161 # * max_retries >= 1 -> the worker's ``request.retries < max_retries`` guardCOMMENT
LOWbackend/backend/flowerconfig.py1# Flower is a real-time web based monitor and administration toolCOMMENT
LOWbackend/backend/settings/base.py121COMMENT
LOWbackend/pg_queue/models.py41 # fairness L3: higher value is claimed sooner. The canonical range lives inCOMMENT
LOWbackend/pg_queue/models.py61 # claim itself (the old `vt<=now()` self-heal is gone). The reaper is thereforeCOMMENT
LOWbackend/pg_queue/models.py81 # 'ready' rows, so a scheduled row is physically absent from it and a pendingCOMMENT
LOWbackend/pg_queue/models.py101 # Backstop no writer can bypass: state is a closed enum. Values sourcedCOMMENT
LOWbackend/pg_queue/models.py121 F("msg_id"),COMMENT
LOWbackend/pg_queue/models.py281 # only the execution_id otherwise. "" = unknown (the reaper then skips the APICOMMENT
LOWbackend/pg_queue/models.py421 queue = models.TextField()COMMENT
LOWbackend/pg_queue/models.py541 ``organization_id`` is stamped below — the reaper needs it for the org-scopedCOMMENT
LOWbackend/pg_queue/producer.py161 available_at, state = _resolve_visibility(countdown, eta)COMMENT
LOW…_queue/management/commands/mirror_pg_periodic_tasks.py41# Rows per DB round trip. Matches the batch size the repo's other bounded loops useCOMMENT
LOW…_queue/management/commands/mirror_pg_periodic_tasks.py361 )COMMENT
76 more matches not shown…
AI Slop Vocabulary27 hits · 63 pts
SeverityFileLineSnippetContext
MEDIUMbackend/workflow_manager/internal_views.py2038 # Step 3: Build comprehensive workflow definition using dataclassesCOMMENT
MEDIUMbackend/workflow_manager/internal_views.py120 # Build comprehensive contextCOMMENT
MEDIUMbackend/workflow_manager/internal_views.py305 # Build comprehensive source configCOMMENT
MEDIUMbackend/workflow_manager/internal_views.py456 # Build comprehensive destination configCOMMENT
MEDIUMbackend/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.py422 # 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.py2610 """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.py96 # globals is simply robust to either loading.COMMENT
MEDIUMworkers/tests/test_barrier.py890 # match a misconfigured-harness ``AssertionError`` or anyCOMMENT
MEDIUMworkers/tests/test_barrier.py892 # harness misconfiguration as a passing assertion.COMMENT
MEDIUMworkers/shared/clients/base_client.py271 """Enhanced HTTP request with robust error handling and retry logic.STRING
LOWworkers/shared/cache/cache_decorator.py129 # No cache available, just call the methodCOMMENT
LOWworkers/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.py86 """Execute workflow with clean, linear flow and comprehensive result propagation."""STRING
MEDIUMworkers/shared/api/internal_client.py1501 """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.py1197 # 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.py302CODE
LOWbackend/workflow_manager/workflow_v2/workflow_helper.py579CODE
LOWbackend/workflow_manager/workflow_v2/execution.py36CODE
LOWbackend/workflow_manager/workflow_v2/execution.py125CODE
LOWbackend/middleware/exception.py93CODE
LOWbackend/pg_queue/producer.py98CODE
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.py227CODE
LOWworkers/queue_backend/pg_queue/consumer.py266CODE
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.py1100CODE
LOWworkers/shared/api/internal_client.py1238CODE
LOWworkers/shared/infrastructure/database/utils.py147CODE
LOWworkers/executor/executors/answer_prompt.py323CODE
LOWworkers/executor/executors/answer_prompt.py416CODE
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.py218CODE
LOWunstract/sdk1/src/unstract/sdk1/llm.py1238CODE
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.py1112 `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.py50 "profile_manager_id": str | null,STRING
HIGHworkers/queue_backend/pg_barrier.py932 " results = results || jsonb_build_array(%s::jsonb), "CODE
HIGHworkers/tests/test_executor_dispatch.py143 # 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
LOWbackend/account_v2/tests.py45 self.admin = _make_member(self.org, "admin@example.com", UserRole.ADMIN.value)CODE
LOWbackend/account_v2/tests.py60 member = _make_member(self.org, "user@example.com", UserRole.USER.value)CODE
LOWworkers/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.jsx59 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