Repository Analysis

Ontos-AI/knowhere

Knowhere extracts, parses, and outputs structured chunks ready for AI Agents and RAG.

14.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Ontos-AI/knowhere, a Python project with 2,722 GitHub stars. SynthScan v2.0 examined 246,659 lines of code across 1246 source files, recording 3033 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 14.3 places this repository in the Low 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).

14.3
Adjusted Score
14.3
Raw Score
100%
Time Factor
2026-08-28
Last Push
2.7K
Stars
Python
Language
246.7K
Lines of Code
1.2K
Files
3.0K
Pattern Hits
2026-08-29
Scan Date
0.02
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 0HIGH 25MEDIUM 166LOW 2842

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 3033 distinct pattern matches across 20 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 Identifiers1360 hits · 1370 pts
SeverityFileLineSnippetContext
LOWdeploy/ecs/test_manage_staging_workflow.py15def test_workflow_exposes_only_manual_status_start_and_stop() -> None:CODE
LOWdeploy/ecs/test_manage_staging_workflow.py26def test_mutations_require_an_ontos_ai_github_approval_url() -> None:CODE
LOWdeploy/ecs/test_manage_staging_workflow.py35def test_workflow_uses_named_profile_and_approved_account() -> None:CODE
LOWdeploy/ecs/test_manage_staging_workflow.py46def test_start_restores_healthy_workers_before_api() -> None:CODE
LOWdeploy/ecs/test_manage_staging_workflow.py70def test_worker_health_gate_polls_through_container_start_period() -> None:CODE
LOWdeploy/ecs/test_manage_staging_workflow.py85def test_public_api_health_gate_retries_transient_alb_errors() -> None:CODE
LOWdeploy/ecs/test_manage_staging_workflow.py102def test_stop_closes_api_then_drains_before_workers() -> None:CODE
LOWdeploy/ecs/test_manage_staging_workflow.py117def test_status_uses_the_jobs_ledger_for_backlog() -> None:CODE
LOWdeploy/ecs/test_manage_staging_workflow.py130def test_start_reports_readiness_time() -> None:CODE
LOWdeploy/ecs/test_render_task_definitions.py113def test_staging_templates_preserve_expected_staging_configuration(CODE
LOWdeploy/ecs/test_render_task_definitions.py142def test_staging_worker_preserves_evidence_selected_capacity(tmp_path: Path) -> None:CODE
LOWdeploy/ecs/test_render_task_definitions.py170def test_renderer_rejects_unresolved_placeholders() -> None:CODE
LOWdeploy/ecs/render_task_definitions.py70def validate_rendered_definition(definition: object) -> None:CODE
LOWpackages/shared-python/shared/core/logging.py96def contains_database_credentials(value: object) -> bool:CODE
LOWpackages/shared-python/shared/core/logging.py101def _is_expected_client_exception(exception: BaseException) -> bool:CODE
LOWpackages/shared-python/shared/core/logging.py123def _downgrade_expected_logfire_exception(CODE
LOWpackages/shared-python/shared/core/logging.py281def _configure_noisy_third_party_loggers() -> None:CODE
LOWpackages/shared-python/shared/core/database.py199def setup_pool_event_listeners():CODE
LOW…ckages/shared-python/shared/core/otel_gevent_compat.py27def patch_otel_context_for_gevent() -> None:CODE
LOW…-python/shared/core/response/error_response_builder.py11def build_standard_error_response(CODE
LOW…ckages/shared-python/shared/core/response/ErrorCode.py128 def get_http_status_from_error_code(CODE
LOW…ckages/shared-python/shared/core/response/ErrorCode.py135 def get_error_code_from_http_status(CODE
LOWpackages/shared-python/shared/core/config/database.py63 def get_async_ssl_connect_args(self) -> dict:CODE
LOWpackages/shared-python/shared/core/config/qstash.py45 def qstash_failure_callback_url(self) -> Optional[str]:CODE
LOWpackages/shared-python/shared/core/config/celery.py106 def get_celery_result_backend(self) -> str:CODE
LOWpackages/shared-python/shared/core/config/storage.py118 def validate_storage_credentials(self) -> "StorageConfig":CODE
LOWpackages/shared-python/shared/core/config/storage.py240def get_cached_storage_adapter():CODE
LOWpackages/shared-python/shared/core/config/app.py37 def validate_worker_redelivery_window(self) -> "AppConfig":CODE
LOWpackages/shared-python/shared/core/config/base.py126 def validate_telemetry_posthog_host(cls, v):CODE
LOWpackages/shared-python/shared/core/config/base.py132 def validate_telemetry_batch_size(cls, v):CODE
LOWpackages/shared-python/shared/core/config/base.py140 def validate_telemetry_request_timeout_seconds(cls, v):CODE
LOWpackages/shared-python/shared/core/config/base.py148 def validate_telemetry_aggregate_interval_seconds(cls, v):CODE
LOW…ython/shared/core/state_machine/transition_payloads.py15def serialize_transition_metadata(CODE
LOW…ython/shared/core/state_machine/transition_payloads.py27def build_failure_transition_metadata(CODE
LOW…ython/shared/core/state_machine/transition_payloads.py61def build_progress_cache_payload(CODE
LOW…-python/shared/core/state_machine/transition_runner.py28def prepare_transition_attempt(CODE
LOW…-python/shared/core/state_machine/transition_runner.py63def should_retry_cas_conflict(CODE
LOW…-python/shared/core/state_machine/transition_runner.py71def get_cas_retry_delay_seconds(attempt_index: int) -> float:CODE
LOW…-python/shared/core/state_machine/transition_runner.py75def build_cas_conflict_outcome(CODE
LOW…-python/shared/core/state_machine/transition_runner.py91def build_transition_exception_outcome(CODE
LOW…-python/shared/core/state_machine/transition_runner.py107def build_rollback_exception_outcome(CODE
LOW…ed-python/shared/core/exceptions/knowhere_exception.py316def _reconstruct_knowhere_exception(cls, state):CODE
LOWpackages/shared-python/shared/tests/test_llm_config.py29def test_flat_root_applies_to_both_channels() -> None:CODE
LOWpackages/shared-python/shared/tests/test_llm_config.py41def test_models_map_same_endpoint_different_models() -> None:CODE
LOWpackages/shared-python/shared/tests/test_llm_config.py53def test_models_map_partial_leaves_other_channel_default() -> None:CODE
LOWpackages/shared-python/shared/tests/test_llm_config.py63def test_models_overrides_root_model_per_channel() -> None:CODE
LOWpackages/shared-python/shared/tests/test_llm_config.py74def test_text_only_leaves_vision_on_defaults() -> None:CODE
LOWpackages/shared-python/shared/tests/test_llm_config.py80def test_vision_only_leaves_text_on_defaults() -> None:CODE
LOWpackages/shared-python/shared/tests/test_llm_config.py86def test_two_different_endpoints() -> None:CODE
LOWpackages/shared-python/shared/tests/test_llm_config.py100def test_channel_replaces_root() -> None:CODE
LOWpackages/shared-python/shared/tests/test_llm_config.py113def test_root_plus_text_override() -> None:CODE
LOWpackages/shared-python/shared/tests/test_llm_config.py124def test_partial_root_rejected() -> None:CODE
LOWpackages/shared-python/shared/tests/test_llm_config.py129def test_auth_without_model_rejected() -> None:CODE
LOWpackages/shared-python/shared/tests/test_llm_config.py134def test_empty_config_rejected() -> None:CODE
LOWpackages/shared-python/shared/tests/test_llm_config.py139def test_masked_dump_masks_root_and_channels() -> None:CODE
LOW…kages/shared-python/shared/tests/test_path_segments.py30def test_escape_round_trip_for_slash_in_title() -> None:CODE
LOW…kages/shared-python/shared/tests/test_path_segments.py38def test_escape_round_trip_for_literal_escape_char() -> None:CODE
LOW…kages/shared-python/shared/tests/test_path_segments.py43def test_join_and_split_keeps_slash_title_as_one_segment() -> None:CODE
LOW…kages/shared-python/shared/tests/test_path_segments.py56def test_append_under_escaped_parent() -> None:CODE
LOW…kages/shared-python/shared/tests/test_path_segments.py63def test_split_document_path_unescapes_section_titles() -> None:CODE
1300 more matches not shown…
Unused Imports688 hits · 669 pts
SeverityFileLineSnippetContext
LOWdeploy/ecs/render_task_definitions.py3CODE
LOWpackages/shared-python/shared/core/logging.py12CODE
LOWpackages/shared-python/shared/core/response/__init__.py3CODE
LOWpackages/shared-python/shared/core/response/__init__.py4CODE
LOWpackages/shared-python/shared/core/response/__init__.py4CODE
LOWpackages/shared-python/shared/core/response/__init__.py4CODE
LOWpackages/shared-python/shared/core/response/__init__.py4CODE
LOWpackages/shared-python/shared/core/config/__init__.py5CODE
LOWpackages/shared-python/shared/core/config/__init__.py8CODE
LOWpackages/shared-python/shared/core/config/__init__.py8CODE
LOWpackages/shared-python/shared/core/config/__init__.py8CODE
LOWpackages/shared-python/shared/core/config/__init__.py8CODE
LOWpackages/shared-python/shared/core/config/__init__.py8CODE
LOWpackages/shared-python/shared/core/config/__init__.py15CODE
LOWpackages/shared-python/shared/core/config/__init__.py16CODE
LOWpackages/shared-python/shared/core/config/__init__.py17CODE
LOWpackages/shared-python/shared/core/config/__init__.py18CODE
LOWpackages/shared-python/shared/core/config/__init__.py19CODE
LOWpackages/shared-python/shared/core/config/__init__.py20CODE
LOWpackages/shared-python/shared/core/config/__init__.py21CODE
LOWpackages/shared-python/shared/core/config/__init__.py21CODE
LOWpackages/shared-python/shared/core/config/__init__.py21CODE
LOWpackages/shared-python/shared/core/config/__init__.py22CODE
LOWpackages/shared-python/shared/core/config/__init__.py23CODE
LOW…ython/shared/core/state_machine/transition_payloads.py1CODE
LOW…-python/shared/core/state_machine/transition_runner.py1CODE
LOW…es/shared-python/shared/core/state_machine/__init__.py12CODE
LOW…es/shared-python/shared/core/state_machine/__init__.py12CODE
LOW…es/shared-python/shared/core/state_machine/__init__.py12CODE
LOW…es/shared-python/shared/core/state_machine/__init__.py12CODE
LOW…python/shared/core/state_machine/transition_outcome.py1CODE
LOW…ckages/shared-python/shared/core/constants/__init__.py3CODE
LOW…ckages/shared-python/shared/core/constants/__init__.py4CODE
LOW…ckages/shared-python/shared/core/constants/__init__.py5CODE
LOW…ckages/shared-python/shared/core/constants/__init__.py6CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py3CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py3CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py3CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py3CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py3CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py3CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py3CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py3CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py3CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py3CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py3CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py3CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py17CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py18CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py19CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py19CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py19CODE
LOWpackages/shared-python/shared/core/billing/__init__.py23CODE
LOWpackages/shared-python/shared/core/billing/__init__.py24CODE
LOWpackages/shared-python/shared/tests/test_llm_config.py3CODE
LOW…kages/shared-python/shared/tests/test_path_segments.py3CODE
LOW…shared-python/shared/tests/test_zip_manifest_schema.py1CODE
LOW…hared-python/shared/tests/test_database_pool_config.py3CODE
LOW…ges/shared-python/shared/tests/test_nav_llm_backend.py3CODE
LOW…kages/shared-python/shared/tests/test_nav_trace_map.py3CODE
628 more matches not shown…
Excessive Try-Catch Wrapping484 hits · 518 pts
SeverityFileLineSnippetContext
LOWpackages/shared-python/shared/core/database.py75 except Exception:CODE
LOWpackages/shared-python/shared/core/database.py89 except Exception as commit_error:CODE
LOWpackages/shared-python/shared/core/database.py94 except Exception as rollback_error:CODE
LOWpackages/shared-python/shared/core/database.py98 except Exception:CODE
LOWpackages/shared-python/shared/core/database.py104 except Exception as rollback_error:CODE
LOWpackages/shared-python/shared/core/database.py115 except Exception as close_error:CODE
LOWpackages/shared-python/shared/core/database.py168 except Exception as e:CODE
LOWpackages/shared-python/shared/core/database.py271 except Exception as e:CODE
LOWpackages/shared-python/shared/core/database.py280 except Exception as e:CODE
LOWpackages/shared-python/shared/core/database.py294 except Exception as e:CODE
LOWpackages/shared-python/shared/core/celery_router.py166 except Exception as e:CODE
LOWpackages/shared-python/shared/core/celery_router.py207 except Exception as e:CODE
LOWpackages/shared-python/shared/core/celery_router.py249 except Exception as e:CODE
LOWpackages/shared-python/shared/core/celery_router.py305 except Exception as e:CODE
LOWpackages/shared-python/shared/core/database_sync.py92 except Exception:CODE
LOWpackages/shared-python/shared/core/config/database.py120 except Exception as e:CODE
LOWpackages/shared-python/shared/core/config/redis.py115 except Exception as e:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py168 except Exception as e:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py173 except Exception as rollback_err:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py253 except Exception as e:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py296 except Exception as e:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py339 except Exception as e:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py344 except Exception as rollback_err:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py440 except Exception as e:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py472 except Exception as e:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py480 except Exception as e:CODE
LOW…ges/shared-python/shared/core/state_machine/service.py181 except Exception as e:CODE
LOW…ges/shared-python/shared/core/state_machine/service.py186 except Exception as rollback_err:CODE
LOW…ges/shared-python/shared/core/state_machine/service.py271 except Exception as e:CODE
LOW…ges/shared-python/shared/core/state_machine/service.py319 except Exception as e:CODE
LOW…ges/shared-python/shared/core/state_machine/service.py363 except Exception as e:CODE
LOW…ges/shared-python/shared/core/state_machine/service.py368 except Exception as rollback_err:CODE
LOW…ges/shared-python/shared/core/state_machine/service.py385 except Exception as e:CODE
LOW…ges/shared-python/shared/core/state_machine/service.py496 except Exception as e:CODE
LOW…ges/shared-python/shared/core/state_machine/service.py500 except Exception as rollback_err:CODE
LOW…ges/shared-python/shared/core/state_machine/service.py534 except Exception as e:CODE
LOW…ges/shared-python/shared/core/state_machine/service.py542 except Exception as e:CODE
LOW…ython/shared/core/state_machine/transition_payloads.py23 except Exception:CODE
LOW…ed-python/shared/core/exceptions/knowhere_exception.py250 except Exception as e:STRING
LOWpackages/shared-python/shared/utils/json_utils.py71 except Exception: # pragma: no coverCODE
LOWpackages/shared-python/shared/utils/json_utils.py88 except Exception: # pragma: no coverCODE
LOWpackages/shared-python/shared/utils/token_estimate.py21 except Exception:CODE
LOWpackages/shared-python/shared/utils/token_estimate.py27 except Exception:CODE
LOWpackages/shared-python/shared/utils/token_estimate.py33 except Exception:CODE
LOWpackages/shared-python/shared/utils/token_estimate.py63 except Exception:CODE
LOW…ython/shared/repositories/webhook_secret_repository.py210 except Exception as e:CODE
LOWpackages/shared-python/shared/services/worker_health.py64 except Exception as exc:CODE
LOWpackages/shared-python/shared/services/worker_health.py97 except Exception as exc:CODE
LOW…ared-python/shared/services/webhook/delivery_client.py143 except Exception as error:CODE
LOW…hared-python/shared/services/webhook/event_delivery.py126 except Exception as error:CODE
LOW…hared-python/shared/services/webhook/qstash_payload.py38 except Exception as exc:CODE
LOW…shared-python/shared/services/webhook/qstash_client.py115 except Exception as exc:CODE
LOW…ared-python/shared/services/webhook/secret_resolver.py54 except Exception as error:CODE
LOW…red-python/shared/services/webhook/qstash_publisher.py116 except Exception as exc:CODE
LOW…d-python/shared/services/webhook/payload_enrichment.py48 except Exception as error:CODE
LOW…ed-python/shared/services/encryption/fernet_service.py51 except Exception as error:CODE
LOW…ed-python/shared/services/encryption/fernet_service.py86 except Exception as error:CODE
LOW…hared-python/shared/services/redis/distributed_lock.py118 except Exception as exc:CODE
LOW…hared-python/shared/services/redis/distributed_lock.py172 except Exception as exc:CODE
LOW…red-python/shared/services/redis/task_redis_service.py39 except Exception as e:CODE
424 more matches not shown…
Decorative Section Separators128 hits · 406 pts
SeverityFileLineSnippetContext
MEDIUM…hared-python/shared/core/state_machine/service_sync.py52 # ── Public API ──────────────────────────────────────────────────────COMMENT
MEDIUM…hared-python/shared/core/state_machine/service_sync.py348 # ── Private helpers ─────────────────────────────────────────────────COMMENT
MEDIUM…ges/shared-python/shared/core/state_machine/service.py50 # ── Public API ──────────────────────────────────────────────────────COMMENT
MEDIUM…ges/shared-python/shared/core/state_machine/service.py389 # ── Private helpers ─────────────────────────────────────────────────COMMENT
MEDIUM…red-python/shared/core/exceptions/domain_exceptions.py50# ============================================================================COMMENT
MEDIUM…red-python/shared/core/exceptions/domain_exceptions.py52# ============================================================================COMMENT
MEDIUM…red-python/shared/core/exceptions/domain_exceptions.py69# ============================================================================COMMENT
MEDIUM…red-python/shared/core/exceptions/domain_exceptions.py71# ----------------------------------------------------------------------------COMMENT
MEDIUM…red-python/shared/core/exceptions/domain_exceptions.py74# ============================================================================COMMENT
MEDIUM…red-python/shared/core/exceptions/domain_exceptions.py339# ============================================================================COMMENT
MEDIUM…red-python/shared/core/exceptions/domain_exceptions.py341# ----------------------------------------------------------------------------COMMENT
MEDIUM…red-python/shared/core/exceptions/domain_exceptions.py345# ============================================================================COMMENT
MEDIUM…red-python/shared/core/exceptions/domain_exceptions.py457# ============================================================================COMMENT
MEDIUM…red-python/shared/core/exceptions/domain_exceptions.py459# ----------------------------------------------------------------------------COMMENT
MEDIUM…red-python/shared/core/exceptions/domain_exceptions.py462# ============================================================================COMMENT
MEDIUM…ed-python/shared/core/exceptions/knowhere_exception.py148 # =======================================================================COMMENT
MEDIUM…ed-python/shared/core/exceptions/knowhere_exception.py150 # =======================================================================COMMENT
MEDIUM…ages/shared-python/shared/core/billing/micro_dollar.py56 # =============================================COMMENT
MEDIUM…ages/shared-python/shared/core/billing/micro_dollar.py58 # =============================================COMMENT
MEDIUM…ages/shared-python/shared/core/billing/micro_dollar.py82 # =============================================COMMENT
MEDIUM…ages/shared-python/shared/core/billing/micro_dollar.py84 # =============================================COMMENT
MEDIUM…ages/shared-python/shared/core/billing/micro_dollar.py126 # =============================================COMMENT
MEDIUM…ages/shared-python/shared/core/billing/micro_dollar.py128 # =============================================COMMENT
MEDIUM…ages/shared-python/shared/core/billing/micro_dollar.py162 # =============================================COMMENT
MEDIUM…ages/shared-python/shared/core/billing/micro_dollar.py164 # =============================================COMMENT
MEDIUM…hared-python/shared/services/redis/distributed_lock.py81 # ------------------------------------------------------------------STRING
MEDIUM…hared-python/shared/services/redis/distributed_lock.py83 # ------------------------------------------------------------------STRING
MEDIUM…hared-python/shared/services/redis/distributed_lock.py123 # ------------------------------------------------------------------COMMENT
MEDIUM…hared-python/shared/services/redis/distributed_lock.py125 # ------------------------------------------------------------------COMMENT
MEDIUM…hared-python/shared/services/redis/distributed_lock.py141 # ------------------------------------------------------------------COMMENT
MEDIUM…hared-python/shared/services/redis/distributed_lock.py143 # ------------------------------------------------------------------COMMENT
MEDIUM…ython/shared/services/retrieval/publication_service.py41 # ── Public API ──────────────────────────────────────────────────────COMMENT
MEDIUM…on/shared/services/ai/openai_compatible_client_sync.py178 # ------------------------------------------------------------------COMMENT
MEDIUM…on/shared/services/ai/openai_compatible_client_sync.py180 # ------------------------------------------------------------------COMMENT
MEDIUM…on/shared/services/ai/openai_compatible_client_sync.py299 # ------------------------------------------------------------------COMMENT
MEDIUM…ed-python/shared/services/ai/iloveapi_quota_manager.py147 # ------------------------------------------------------------------COMMENT
MEDIUM…ed-python/shared/services/ai/iloveapi_quota_manager.py149 # ------------------------------------------------------------------COMMENT
MEDIUM…ges/shared-python/shared/services/ai/prompt_service.py17# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ges/shared-python/shared/services/ai/prompt_service.py19# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ges/shared-python/shared/services/ai/prompt_service.py66# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ges/shared-python/shared/services/ai/prompt_service.py68# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ages/shared-python/shared/services/quota/token_pool.py133 # ------------------------------------------------------------------STRING
MEDIUM…ages/shared-python/shared/services/quota/token_pool.py135 # ------------------------------------------------------------------STRING
MEDIUM…ages/shared-python/shared/services/quota/token_pool.py205 # ------------------------------------------------------------------COMMENT
MEDIUM…ages/shared-python/shared/services/quota/token_pool.py207 # ------------------------------------------------------------------COMMENT
MEDIUM…ages/shared-python/shared/services/quota/token_pool.py275 # ------------------------------------------------------------------COMMENT
MEDIUM…ages/shared-python/shared/services/quota/token_pool.py277 # ------------------------------------------------------------------COMMENT
MEDIUM…hared-python/shared/services/jobs/lifecycle/service.py43 # ── Public API ──────────────────────────────────────────────────────COMMENT
MEDIUMapps/api/app/services/rate_limit/config.py16# ---------------------------------------------------------------------------COMMENT
MEDIUMapps/api/app/services/rate_limit/config.py18# ---------------------------------------------------------------------------COMMENT
MEDIUMapps/api/app/services/rate_limit/config.py76 # ------------------------------------------------------------------COMMENT
MEDIUMapps/api/app/services/rate_limit/config.py78 # ------------------------------------------------------------------COMMENT
MEDIUMapps/api/app/services/rate_limit/config.py99 # ------------------------------------------------------------------COMMENT
MEDIUMapps/api/app/services/rate_limit/config.py101 # ------------------------------------------------------------------COMMENT
MEDIUMapps/api/app/services/rate_limit/config.py134 # ------------------------------------------------------------------COMMENT
MEDIUMapps/api/app/services/rate_limit/config.py136 # ------------------------------------------------------------------COMMENT
MEDIUMapps/api/app/services/rate_limit/limiter.py30 # ------------------------------------------------------------------COMMENT
MEDIUMapps/api/app/services/rate_limit/limiter.py32 # ------------------------------------------------------------------COMMENT
MEDIUMapps/api/app/services/rate_limit/limiter.py104 # ------------------------------------------------------------------COMMENT
MEDIUMapps/api/app/services/rate_limit/limiter.py106 # ------------------------------------------------------------------COMMENT
68 more matches not shown…
Deep Nesting146 hits · 144 pts
SeverityFileLineSnippetContext
LOWpackages/shared-python/shared/core/logging.py141CODE
LOWpackages/shared-python/shared/core/database.py82CODE
LOWpackages/shared-python/shared/core/celery_router.py216CODE
LOWpackages/shared-python/shared/core/config/database.py63CODE
LOW…hared-python/shared/core/state_machine/service_sync.py75CODE
LOW…ges/shared-python/shared/core/state_machine/service.py76CODE
LOWpackages/shared-python/shared/utils/text_utils.py140CODE
LOWpackages/shared-python/shared/utils/text_utils.py223CODE
LOWpackages/shared-python/shared/utils/zip_download.py11CODE
LOW…ed-python/shared/services/encryption/fernet_service.py116CODE
LOW…red-python/shared/services/redis/redis_sync_service.py152CODE
LOW…s/shared-python/shared/services/redis/redis_service.py379CODE
LOW…s/shared-python/shared/services/redis/redis_monitor.py92CODE
LOW…s/shared-python/shared/services/redis/redis_monitor.py185CODE
LOW…s/shared-python/shared/services/redis/redis_monitor.py278CODE
LOW…red-python/shared/services/storage/zip_chunk_schema.py17CODE
LOW…red-python/shared/services/storage/zip_chunk_schema.py46CODE
LOW…d-python/shared/services/storage/zip_doc_navigation.py37CODE
LOW…d-python/shared/services/storage/zip_doc_navigation.py128CODE
LOW…-python/shared/services/storage/adapters/s3_adapter.py152CODE
LOW…on/shared/services/chunks/dataframe_chunk_converter.py291CODE
LOW…red-python/shared/services/chunks/chunk_connections.py112CODE
LOW…red-python/shared/services/chunks/chunk_connections.py169CODE
LOW…hared-python/shared/services/retrieval/nav_snapshot.py242CODE
LOW…hared-python/shared/services/retrieval/nav_snapshot.py419CODE
LOW…hared-python/shared/services/retrieval/trace/mapnav.py361CODE
LOW…d-python/shared/services/retrieval/hydration/assets.py159CODE
LOW…shared/services/retrieval/hydration/result_assembly.py17CODE
LOW…d-python/shared/services/retrieval/nav/nav_knowhere.py752CODE
LOW…d-python/shared/services/retrieval/nav/nav_knowhere.py1199CODE
LOW…red-python/shared/services/retrieval/nav/nav_verify.py32CODE
LOW…red-python/shared/services/retrieval/nav/nav_verify.py53CODE
LOW…ython/shared/services/retrieval/nav/nav_orchestrate.py303CODE
LOW…ython/shared/services/retrieval/nav/nav_orchestrate.py405CODE
LOW…red-python/shared/services/retrieval/nav/nav_assets.py424CODE
LOW…red-python/shared/services/retrieval/nav/nav_policy.py280CODE
LOW…hared-python/shared/services/retrieval/nav/nav_plan.py112CODE
LOW…hared-python/shared/services/retrieval/nav/nav_plan.py343CODE
LOW…hared-python/shared/services/retrieval/nav/nav_plan.py384CODE
LOW…hared-python/shared/services/retrieval/nav/nav_plan.py675CODE
LOW…d-python/shared/services/retrieval/nav/nav_navigate.py442CODE
LOW…python/shared/services/retrieval/nav/nav_map_scores.py388CODE
LOW…python/shared/services/retrieval/nav/nav_map_scores.py420CODE
LOW…ed-python/shared/services/retrieval/nav/nav_compose.py536CODE
LOW…ed-python/shared/services/retrieval/nav/nav_compose.py632CODE
LOW…ython/shared/services/retrieval/nav/knowhere_hybrid.py663CODE
LOW…/shared-python/shared/services/http/pinned_outbound.py236CODE
LOW…ed-python/shared/services/ai/iloveapi_quota_manager.py96CODE
LOW…ges/shared-python/shared/services/ai/token_tracking.py147CODE
LOW…ges/shared-python/shared/services/ai/prompt_service.py119CODE
LOW…ges/shared-python/shared/services/ai/summary/engine.py74CODE
LOW…ges/shared-python/shared/services/ai/summary/engine.py99CODE
LOW…shared-python/shared/services/telemetry/api_metrics.py37CODE
LOWapps/api/custom_openapi.py5CODE
LOWapps/api/custom_openapi.py19CODE
LOWapps/api/app/repositories/job_repository.py292CODE
LOW…tract/test_retrieval_lazy_snapshot_quality_contract.py49CODE
LOWapps/api/scripts/log_manager.py163CODE
LOWapps/api/scripts/log_manager.py38CODE
LOWapps/api/scripts/log_manager.py101CODE
86 more matches not shown…
Modern Structural Boilerplate66 hits · 68 pts
SeverityFileLineSnippetContext
LOWpackages/shared-python/shared/core/database.py20logger = logging.getLogger(__name__)CODE
LOWpackages/shared-python/shared/core/response/__init__.py11__all__ = [CODE
LOWpackages/shared-python/shared/core/config/__init__.py25__all__ = [CODE
LOW…es/shared-python/shared/core/state_machine/__init__.py19__all__ = [CODE
LOW…ckages/shared-python/shared/core/constants/__init__.py8__all__ = [CODE
LOW…kages/shared-python/shared/core/exceptions/__init__.py25__all__ = [CODE
LOWpackages/shared-python/shared/core/billing/__init__.py26__all__ = [CODE
LOWpackages/shared-python/shared/repositories/__init__.py8__all__ = ["CreditsRepository", "SyncCreditsRepository"]CODE
LOWpackages/shared-python/shared/models/__init__.py10__all__ = [CODE
LOW…kages/shared-python/shared/models/database/__init__.py50__all__ = [CODE
LOW…es/shared-python/shared/models/schemas/job_metadata.py119 def set_file_source(metadata: Dict[str, Any], *, source_file_name: str) -> None:CODE
LOW…ages/shared-python/shared/services/webhook/__init__.py5__all__ = ["WebhookDispatcher", "get_webhook_dispatcher"]CODE
LOW…s/shared-python/shared/services/encryption/__init__.py8__all__ = ["FernetService", "get_fernet_service"]CODE
LOW…ckages/shared-python/shared/services/redis/__init__.py20__all__ = [CODE
LOWpackages/shared-python/shared/services/auth/__init__.py5__all__ = ["ensure_better_auth_user_table"]CODE
LOW…ed-python/shared/services/storage/adapters/__init__.py8__all__ = ["FileSystemStorageAdapter", "S3StorageAdapter"]CODE
LOW…shared-python/shared/services/retrieval/app_service.py14__all__ = ["merge_channels_rrf", "run_retrieval_query"]CODE
LOW…red-python/shared/services/retrieval/trace/__init__.py13__all__ = [CODE
LOW…ared-python/shared/services/retrieval/graph/service.py30logger = logging.getLogger(__name__)CODE
LOW…d-python/shared/services/retrieval/nav/nav_knowhere.py668 def set_session(self, *, readonly: bool, autocommit: bool) -> None:CODE
LOW…ython/shared/services/retrieval/nav/nav_orchestrate.py103def _set_focus(state: NavState, subgoal: Subgoal, retrieval_query: str) -> None:CODE
LOW…red-python/shared/services/retrieval/nav/nav_assets.py38def set_nav_vlm_backend(fn: Optional[NavVlmBackend]) -> None:CODE
LOW…shared-python/shared/services/retrieval/nav/nav_llm.py48def set_nav_chat_backend(fn: Optional[NavChatBackend]) -> None:CODE
LOW…hared-python/shared/services/retrieval/nav/__init__.py21__all__ = [CODE
LOWpackages/shared-python/shared/services/http/__init__.py46__all__ = [CODE
LOWpackages/shared-python/shared/services/ai/__init__.py9__all__ = [CODE
LOW…ckages/shared-python/shared/services/quota/__init__.py5__all__ = ["BaseQuotaManager", "TokenConfig", "TokenLease"]CODE
LOW…es/shared-python/shared/services/telemetry/__init__.py15__all__ = [CODE
LOW…ages/shared-python/shared/services/billing/__init__.py12__all__ = [CODE
LOWapps/api/app/core/__init__.py25__all__ = [CODE
LOWapps/api/app/core/middleware/__init__.py6__all__ = ["setup_cors", "LoggingMiddleware"]CODE
LOWapps/api/app/repositories/__init__.py9__all__ = [CODE
LOWapps/api/app/mcp/__init__.py3__all__ = ["create_retrieval_mcp_server"]CODE
LOWapps/api/app/api/api_router.py15__all__ = ["api_router"]CODE
LOWapps/api/app/api/v1/api_v1.py68__all__ = ["api_router"]CODE
LOWapps/api/app/api/v2/api_v2.py14__all__ = ["api_router"]CODE
LOWapps/api/app/api/v2/routes/documents.py40__all__ = ["router"]CODE
LOWapps/api/app/services/document_ingestion/__init__.py3__all__ = ["DocumentIngestionService"]CODE
LOWapps/api/app/services/rate_limit/__init__.py20__all__ = [CODE
LOWapps/api/app/services/jobs/__init__.py7__all__ = [CODE
LOWapps/api/app/services/jobs/read_service.py12__all__ = [CODE
LOW…s/api/app/services/billing/billing_workflow_service.py17__all__ = ["BillingWorkflowService", "ParseUsageResponse"]CODE
LOWapps/api/scripts/add_credits.py106async def _set_user_tier(session: AsyncSession, user_id: str, tier_name: str) -> None:CODE
LOWapps/worker/app/services/__init__.py3__all__ = []CODE
LOW…ices/document_parser/formats/markdown/deferred_task.py35__all__ = [CODE
LOW…ker/app/services/document_parser/profiling/taxonomy.py24__all__ = ["PdfRoutingCategory"]CODE
LOW…app/services/document_parser/profiling/doc_profiler.py258__all__ = ["profile_document"]CODE
LOW…pp/services/document_parser/profiling/profile_model.py82__all__ = ["ParserDocumentProfile", "ParserTocProfile", "TocEvidence"]CODE
LOW…ent_parser/orchestration/office_container_validator.py98__all__ = ["validate_office_container"]CODE
LOWapps/worker/app/services/document_ingestion/service.py5__all__ = ["parse_uploaded_file_job"]CODE
LOWapps/worker/app/services/common/__init__.py13__all__ = [CODE
LOWapps/worker/app/services/page_memory/page_assets.py899__all__ = [CODE
LOWapps/worker/app/services/document_agent/trace.py80 def set_anatomy_map(self, anatomy: PageAnatomyMap, artifact_path: str) -> None:CODE
LOWapps/worker/app/services/document_agent/trace.py85 def set_doc_profile(self, profile: Any) -> None:CODE
LOWapps/worker/app/services/document_agent/__init__.py10__all__ = [CODE
LOW…s/worker/app/services/document_agent/tools/__init__.py18__all__ = ["REGISTRY"]CODE
LOW…p/services/document_agent/bootstrap/aggregate_stats.py141__all__ = ["PROFILE_METRICS", "aggregate_doc_stats"]CODE
LOW…rker/app/services/document_agent/bootstrap/classify.py5__all__ = ["classify_page_kinds"]CODE
LOW…rker/app/services/document_agent/bootstrap/__init__.py10__all__ = [CODE
LOW…/worker/app/services/document_agent/bootstrap/probe.py8__all__ = ["probe_page_assets", "probe_page_features"]CODE
6 more matches not shown…
Cross-File Repetition13 hits · 65 pts
SeverityFileLineSnippetContext
HIGH…ges/shared-python/shared/services/ai/token_tracking.py0walk up the greenlet parent chain to find a registered root id.STRING
HIGH…ages/shared-python/shared/services/ai/llm_overrides.py0walk up the greenlet parent chain to find a registered root id.STRING
HIGH…app/services/document_parser/support/stage_profiler.py0walk up the greenlet parent chain to find a registered root id.STRING
HIGHapps/api/tests/contract/test_documents_contract.py0insert into documents ( document_id, user_id, namespace, status, current_job_result_id, source_file_name, parse_track, cSTRING
HIGHapps/api/tests/contract/test_job_creation_contract.py0insert into documents ( document_id, user_id, namespace, status, current_job_result_id, source_file_name, parse_track, cSTRING
HIGHapps/api/tests/support/contract_database.py0insert into documents ( document_id, user_id, namespace, status, current_job_result_id, source_file_name, parse_track, cSTRING
HIGHapps/api/tests/contract/test_documents_contract.py0update documents set current_job_result_id = :job_result_id where document_id = :document_idSTRING
HIGH…sts/contract/test_retrieval_map_unit_index_contract.py0update documents set current_job_result_id = :job_result_id where document_id = :document_idSTRING
HIGHapps/api/tests/contract/test_retrieval_contract.py0update documents set current_job_result_id = :job_result_id where document_id = :document_idSTRING
HIGHapps/api/tests/contract/test_job_creation_contract.py0update documents set current_job_result_id = :job_result_id where document_id = :document_idSTRING
HIGHapps/api/tests/support/sync_contract_database.py0insert into "user" (id, name, email) values (:user_id, :name, :email)STRING
HIGHapps/api/tests/support/contract_database.py0insert into "user" (id, name, email) values (:user_id, :name, :email)STRING
HIGHapps/worker/tests/support/contract_database.py0insert into "user" (id, name, email) values (:user_id, :name, :email)STRING
Cross-Language Confusion9 hits · 52 pts
SeverityFileLineSnippetContext
HIGH…hared-python/shared/services/retrieval/nav/nav_plan.py633 '"cardinality": null}\n'CODE
HIGHpackages/shared-python/shared/services/ai/llm_mock.py131 "detect-toc-range": '{"toc_start": null, "toc_end": null, "confidence": "low"}',CODE
HIGHpackages/shared-python/shared/services/ai/llm_mock.py136 '"entities": [], "chart": null}'CODE
HIGHpackages/shared-python/shared/services/ai/llm_mock.py144 '"entities": [], "chart": null}'CODE
HIGH…ges/shared-python/shared/services/ai/prompt_service.py940 "toc_start": null,CODE
HIGH…ges/shared-python/shared/services/ai/prompt_service.py941 "toc_end": null,CODE
HIGHapps/api/scripts/ensure_test_environment.py53 "Ubuntu: sudo apt-get update && sudo apt-get install -y "CODE
HIGH…ker/app/services/document_agent/calibration/prompts.py13 "found_page": "number|null, the physical page number where it starts",CODE
HIGH…/app/services/document_agent/coarse_profile/prompts.py15 "you observe (largest y) when any header is present, otherwise null; "CODE
Over-Commented Block37 hits · 34 pts
SeverityFileLineSnippetContext
LOW…red-python/shared/services/retrieval/execution/plan.py81 return await self._execute_with_overrides(request)COMMENT
LOW…ared-python/shared/services/retrieval/nav/nav_types.py61 navigate_max_steps: int = 8COMMENT
LOW…ared-python/shared/services/retrieval/nav/nav_types.py301 harvested_owner_subgoal: Dict[str, str] = field(default_factory=dict)COMMENT
LOWapps/api/alembic.ini1# A generic, single database configuration.COMMENT
LOWapps/api/alembic.ini21COMMENT
LOWapps/api/alembic.ini41COMMENT
LOWapps/api/alembic.ini61# behavior of splitting on spaces and/or commas.COMMENT
LOWapps/api/alembic.ini81# are written from script.py.makoCOMMENT
LOWapps/api/alembic.ini101COMMENT
LOWapps/api/app/api/v1/routes/webhook.py181 raiseCOMMENT
LOWapps/api/app/api/v1/routes/webhook.py201# logger.info(f"Headers: {dict(request.headers)}")COMMENT
LOWapps/worker/requirements.txt1# This file was autogenerated by uv via the following command:COMMENT
LOWapps/worker/requirements.txt21annotated-doc==0.0.4COMMENT
LOWapps/worker/requirements.txt41 # via aiohttpCOMMENT
LOWapps/worker/requirements.txt61 # viaCOMMENT
LOWapps/worker/requirements.txt81charset-normalizer==3.4.7COMMENT
LOWapps/worker/requirements.txt101crcmod==1.7COMMENT
LOWapps/worker/requirements.txt121et-xmlfile==2.0.0COMMENT
LOWapps/worker/requirements.txt141 # knowhere-sharedCOMMENT
LOWapps/worker/requirements.txt161 # viaCOMMENT
LOWapps/worker/requirements.txt181 # botocoreCOMMENT
LOWapps/worker/requirements.txt201markdownify==1.2.2COMMENT
LOWapps/worker/requirements.txt221 # rank-bm25COMMENT
LOWapps/worker/requirements.txt241 # opentelemetry-instrumentation-asgiCOMMENT
LOWapps/worker/requirements.txt261 # via opentelemetry-instrumentation-fastapiCOMMENT
LOWapps/worker/requirements.txt281 # opentelemetry-instrumentation-asgiCOMMENT
LOWapps/worker/requirements.txt301pandas==2.3.1COMMENT
LOWapps/worker/requirements.txt321 # aiohttpCOMMENT
LOWapps/worker/requirements.txt341pycparser==3.0 ; implementation_name != 'PyPy'COMMENT
LOWapps/worker/requirements.txt361 # fastapi-usersCOMMENT
LOWapps/worker/requirements.txt381 # pytest-mockCOMMENT
LOWapps/worker/requirements.txt401 # via knowhere-worker-appCOMMENT
LOWapps/worker/requirements.txt421regex==2026.4.4COMMENT
LOWapps/worker/requirements.txt441sniffio==1.3.1COMMENT
LOWapps/worker/requirements.txt461tenacity==9.1.4COMMENT
LOWapps/worker/requirements.txt481 # opentelemetry-semantic-conventionsCOMMENT
LOWapps/worker/requirements.txt501 # viaCOMMENT
Self-Referential Comments9 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMdeploy/local-dev/localstack/init/setup-aws-resources.sh19# Create the buckets used by local development.COMMENT
MEDIUMdeploy/local-dev/localstack/init/setup-aws-resources.sh55# Create the SNS topic used for upload notifications.COMMENT
MEDIUMpackages/shared-python/shared/core/database.py59# Create the async session factory.COMMENT
MEDIUMpackages/shared-python/shared/core/database.py80# Create an app-level context manager for operations without an injected DB session.COMMENT
MEDIUMpackages/shared-python/shared/core/config/app.py71# Create the shared application config instance.COMMENT
MEDIUMpackages/shared-python/shared/core/config/app.py77# Create the Redis connection-pool manager.COMMENT
MEDIUMpackages/shared-python/shared/core/config/app.py80# Create the Redis config manager.COMMENT
MEDIUMapps/api/scripts/reset_alembic.py21 # Create the SQLAlchemy engine.COMMENT
MEDIUM…pp/services/document_parser/formats/markdown/parser.py375 # Create a placeholder chunk so the previous heading's pathCOMMENT
Structural Annotation Overuse18 hits · 32 pts
SeverityFileLineSnippetContext
LOWREADME.md53### Step 1: Parse and Build MemoryCOMMENT
LOWREADME.md63### Step 2: Agentic RetrievalCOMMENT
LOW…ared-python/shared/services/billing/credits_service.py164 # Step 1: Insert transaction record (ledger entry)COMMENT
LOW…ared-python/shared/services/billing/credits_service.py175 # Step 2: Recalculate balance from ledger (source of truth)COMMENT
LOW…ared-python/shared/services/billing/credits_service.py180 # Step 3: Update materialized viewCOMMENT
LOWapps/api/app/services/rate_limit/tier_service.py98 # Step 1: sum lifetime successful payments in micro-dollarsCOMMENT
LOWapps/api/app/services/rate_limit/tier_service.py120 # Step 4: persist the tier on user_balancesCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py141 # Step 1: Start taskCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py170 # Step 2: Upload from memory (BytesIO, no disk write)COMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py193 # Step 3: ProcessCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py220 # Step 4: Download PDF to memoryCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py434 # Step 1: PPTX → PDF (in memory)COMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py117 # Step 1: find all TOC keywordsCOMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py123 # Step 2: if no TOC keywords found, use the first line as the candidate areaCOMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py132 # Step 3: build candidate areas for each start indexCOMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py288 # Step 1: detect candidate areas (may be multiple)COMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py296 # Step 2: evaluate each candidate area with LLM (parallel when multiple)COMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py516 # Step 3: Remove TOC lines from md_lines (process in reverse order to correct indices)COMMENT
Verbosity Indicators16 hits · 29 pts
SeverityFileLineSnippetContext
LOW…ared-python/shared/services/billing/credits_service.py164 # Step 1: Insert transaction record (ledger entry)COMMENT
LOW…ared-python/shared/services/billing/credits_service.py175 # Step 2: Recalculate balance from ledger (source of truth)COMMENT
LOW…ared-python/shared/services/billing/credits_service.py180 # Step 3: Update materialized viewCOMMENT
LOWapps/api/app/services/rate_limit/tier_service.py98 # Step 1: sum lifetime successful payments in micro-dollarsCOMMENT
LOWapps/api/app/services/rate_limit/tier_service.py120 # Step 4: persist the tier on user_balancesCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py141 # Step 1: Start taskCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py170 # Step 2: Upload from memory (BytesIO, no disk write)COMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py193 # Step 3: ProcessCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py220 # Step 4: Download PDF to memoryCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py434 # Step 1: PPTX → PDF (in memory)COMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py117 # Step 1: find all TOC keywordsCOMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py123 # Step 2: if no TOC keywords found, use the first line as the candidate areaCOMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py132 # Step 3: build candidate areas for each start indexCOMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py288 # Step 1: detect candidate areas (may be multiple)COMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py296 # Step 2: evaluate each candidate area with LLM (parallel when multiple)COMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py516 # Step 3: Remove TOC lines from md_lines (process in reverse order to correct indices)COMMENT
Modern AI Meta-Vocabulary9 hits · 23 pts
SeverityFileLineSnippetContext
MEDIUMAGENTS.md241│ ├── doc_nav.json # Hierarchical navigation tree for agentic retrievalCODE
MEDIUM…ared-python/shared/services/retrieval/nav/nav_agent.py452 # Checklist: wave orchestration; navigate mode: classic single navigate.COMMENT
MEDIUM…pp/data/demo_documents/research-rag-survey/chunks.json1032 "content": "17\nThe growing ecosystem of RAG is evidenced by the rise in\nRAG-centric AI applications and the contCODE
MEDIUM…pp/data/demo_documents/research-rag-survey/chunks.json1032 "content": "17\nThe growing ecosystem of RAG is evidenced by the rise in\nRAG-centric AI applications and the contCODE
MEDIUM…/demo_documents/stem-transformers-tutorial/chunks.json5676 "content": "►\nLibrary system\n►\nImagine you're looking for information on a specific topic (query)\n►\nEach book CODE
MEDIUM…/demo_documents/stem-transformers-tutorial/chunks.json5676 "content": "►\nLibrary system\n►\nImagine you're looking for information on a specific topic (query)\n►\nEach book CODE
MEDIUM…pp/data/demo_documents/research-toolformer/chunks.json760 "content": "Example\nL−\ni −L+\ni\nUseful\nThe Flodden Window (a war memorial dedicated to The Middleton Archers),CODE
MEDIUM…/versions/e5f6a7b8c9d0_add_agentic_retrieval_tables.py21 # ── retrieval_runs: one row per agentic retrieval query ──COMMENT
MEDIUMapps/worker/scripts/debug_retrieval.py473 # --query mode should exercise the production agentic path; omittingCOMMENT
AI Structural Patterns21 hits · 21 pts
SeverityFileLineSnippetContext
LOW…ges/shared-python/shared/services/redis/key_builder.py221CODE
LOW…shared-python/shared/services/retrieval/app_service.py17CODE
LOW…ared-python/shared/services/retrieval/cache_service.py33CODE
LOW…red-python/shared/services/retrieval/trace/recorder.py34CODE
LOW…red-python/shared/services/retrieval/execution/plan.py28CODE
LOW…n/shared/services/retrieval/execution/query_request.py37CODE
LOW…ared-python/shared/services/retrieval/nav/nav_agent.py294CODE
LOW…ared-python/shared/services/retrieval/nav/nav_agent.py334CODE
LOW…shared-python/shared/services/retrieval/nav/nav_llm.py162CODE
LOW…ges/shared-python/shared/services/ai/summary/engine.py187CODE
LOW…ges/shared-python/shared/services/ai/summary/engine.py204CODE
LOW…ges/shared-python/shared/services/ai/summary/engine.py220CODE
LOWapps/api/app/api/v1/routes/documents.py60CODE
LOWapps/api/app/api/v1/routes/jobs.py58CODE
LOWapps/api/app/api/v2/routes/jobs.py51CODE
LOWapps/api/tests/support/contract_database.py358CODE
LOWapps/api/tests/support/contract_database.py741CODE
LOW…s/worker/app/services/document_parser/parse_service.py10CODE
LOW…pp/services/document_parser/formats/markdown/parser.py230CODE
LOW…pp/services/document_parser/structure/layout_parser.py477CODE
LOWapps/worker/tests/support/contract_database.py37CODE
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…es/shared-python/shared/services/redis/retry_policy.py28 Execute a Redis operation with retry support. Args: operation: Operation callback to execuSTRING
HIGH…ared-python/shared/services/billing/credits_service.py312 Deduct credits using ledger pattern. Raises InsufficientCreditsException if balance too low. ASTRING
HIGH…ices/document_parser/formats/pdf/pymupdf_subprocess.py338Run PyMuPDF work through a bounded gevent threadpool slot. Args: worker_fn: Top-level function with signatuSTRING
AI Slop Vocabulary6 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUM…s/shared-python/shared/services/redis/redis_monitor.py261 """Get a comprehensive monitoring report."""STRING
MEDIUM…ared-python/shared/services/retrieval/nav/nav_types.py101 # Default 1 so shared-checklist probe/harness match without silent overrides.COMMENT
MEDIUM…pp/data/demo_documents/research-rag-survey/chunks.json1032 "content": "17\nThe growing ecosystem of RAG is evidenced by the rise in\nRAG-centric AI applications and the contCODE
MEDIUM…pp/data/demo_documents/research-rag-survey/chunks.json1032 "content": "17\nThe growing ecosystem of RAG is evidenced by the rise in\nRAG-centric AI applications and the contCODE
MEDIUM…/data/demo_documents/research-rag-realized/chunks.json930 "content": "RAG: Strategic & Technical Insights\n17\nChallenges Addressed\n\t\n●\nIncomplete Queries: User \nqueriCODE
MEDIUM…ta/demo_documents/financial-goog-10-k-2025/chunks.json6 "content": "UNITED STATES\nSECURITIES AND EXCHANGE COMMISSION\nWashington, D.C. 20549\n___________________________CODE
Redundant / Tautological Comments8 hits · 12 pts
SeverityFileLineSnippetContext
LOW…ges/shared-python/shared/services/ai/token_tracking.py50 # Check if this greenlet was registered as a childCOMMENT
LOW…ared-python/shared/services/billing/credits_service.py384 # Check if already refundedCOMMENT
LOWapps/api/app/api/v1/routes/webhook_secrets.py146 # Check if secret already exists for this endpointCOMMENT
LOWapps/api/app/services/rate_limit/config.py154 # Check if there are actual changesCOMMENT
LOW…er/app/services/document_parser/formats/html/parser.py263 # Check if purely numericCOMMENT
LOW…rvices/document_parser/structure/metadata_extractor.py113 # Check if this is a # headingCOMMENT
LOW…rvices/document_parser/structure/metadata_extractor.py198 # Check if span contains table htmlCOMMENT
LOW…rvices/document_parser/structure/metadata_extractor.py409 # Check if this is a tracked headingCOMMENT
Slop Phrases5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUM…documents/financial-micron-report-9c0becf5/chunks.json1724 "content": "March 18, 2026\n30\nOutlook\n• We expect higher price, lower cost and favorable mix to \nall contributCODE
MEDIUM…ents/stem-probability-theory-lecture-notes/chunks.json832 "content": "5.4. THE C.D.F.\n34\n5.4. The C.D.F.\nDefinition. De\u001cne F : R →[0, 1] to be the function\nF(x) = CODE
MEDIUM…demo_documents/stem-jurafsky-transformers/doc_nav.json338 "summary": "Figure 8.17 Training a transformer as a language model. [images/image_page_21_figure_1.png]"CODE
MEDIUM…/demo_documents/stem-jurafsky-transformers/chunks.json262 "content": "Figure 8.17 Training a transformer as a language model.\n[images/image_page_21_figure_1.png]",CODE
MEDIUM…/demo_documents/stem-jurafsky-transformers/chunks.json1015 "content": "8.8\n•\nDEALING WITH SCALE\n21\nlong\nand\nthanks\nfor\nNext token\nall\nLoss\n…\n=\n−log yand\n…\n−loCODE
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippetContext
LOW…/tests/contract/test_self_hosted_telemetry_contract.py92 "email": "user@example.com",CODE
LOW…/tests/contract/test_self_hosted_telemetry_contract.py150 "email": "user@example.com",CODE
LOW…/tests/contract/test_self_hosted_telemetry_contract.py161 "email": "user@example.com",CODE
LOW…/tests/contract/test_self_hosted_telemetry_contract.py170 "email": "user@example.com",CODE
LOW…/tests/contract/test_self_hosted_telemetry_contract.py317 "email": "user@example.com",CODE
LOW…/tests/contract/test_self_hosted_telemetry_contract.py381 "email": "user@example.com",CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/smoke_byok.sh3# Usage:COMMENT