Repository Analysis

Ontos-AI/knowhere

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

9.2 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Ontos-AI/knowhere, a Python project with 1,916 GitHub stars. SynthScan v2.0 examined 311,878 lines of code across 1442 source files, recording 2380 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 9.2 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).

9.2
Adjusted Score
9.2
Raw Score
100%
Time Factor
2026-07-13
Last Push
1.9K
Stars
Python
Language
311.9K
Lines of Code
1.4K
Files
2.4K
Pattern Hits
2026-07-14
Scan Date
0.01
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 21MEDIUM 179LOW 2180

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 2380 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 Identifiers894 hits · 898 pts
SeverityFileLineSnippetContext
LOWpackages/shared-python/shared/core/logging.py82def _is_expected_client_exception(exception: BaseException) -> bool:CODE
LOWpackages/shared-python/shared/core/logging.py104def _downgrade_expected_logfire_exception(CODE
LOWpackages/shared-python/shared/core/logging.py255def _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.py125 def get_http_status_from_error_code(CODE
LOW…ckages/shared-python/shared/core/response/ErrorCode.py132 def get_error_code_from_http_status(CODE
LOWpackages/shared-python/shared/core/config/database.py61 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.py88 def get_celery_result_backend(self) -> str:CODE
LOWpackages/shared-python/shared/core/config/storage.py213def get_cached_storage_adapter():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.py318def _reconstruct_knowhere_exception(cls, state):CODE
LOW…/shared-python/shared/tests/test_page_memory_config.py15def test_page_memory_config_defaults_resolve_concurrency_settings() -> None:CODE
LOW…ed-python/shared/tests/test_page_memory_vlm_limiter.py74def test_page_memory_vlm_limiter_acquire_release_updates_inflight_count() -> None:CODE
LOW…ed-python/shared/tests/test_page_memory_vlm_limiter.py86def test_page_memory_vlm_limiter_waits_then_succeeds() -> None:CODE
LOW…ed-python/shared/tests/test_page_memory_vlm_limiter.py96def test_page_memory_vlm_limiter_timeout_raises_unavailable() -> None:CODE
LOW…ed-python/shared/tests/test_page_memory_vlm_limiter.py110def test_page_memory_vlm_limiter_redis_failure_raises_unavailable() -> None:CODE
LOW…ed-python/shared/tests/test_page_memory_vlm_limiter.py117def test_page_memory_provider_exception_still_releases_lease(monkeypatch) -> None:CODE
LOW…ed-python/shared/tests/test_page_memory_vlm_limiter.py165def test_page_memory_summary_unavailable_exception_propagates(CODE
LOW…ed-python/shared/tests/test_page_memory_vlm_limiter.py170 def chat_completion_with_usage(self, **kwargs: Any) -> Any:CODE
LOW…ed-python/shared/tests/test_page_memory_vlm_limiter.py194def test_page_memory_transcription_unavailable_exception_propagates(CODE
LOW…ed-python/shared/tests/test_page_memory_vlm_limiter.py199 def chat_completion_with_usage(self, **kwargs: Any) -> Any:CODE
LOWpackages/shared-python/shared/utils/text_utils.py35def remove_duplicates_orderkept(input_list: List) -> List:CODE
LOWpackages/shared-python/shared/utils/text_utils.py165def _normalize_retrieval_token(token: str) -> str:CODE
LOWpackages/shared-python/shared/utils/text_utils.py172def _split_mixed_language_segments(text: str) -> list[tuple[str, bool]]:CODE
LOWpackages/shared-python/shared/utils/text_utils.py192def _tokenize_english_segment(text: str) -> list[str]:CODE
LOWpackages/shared-python/shared/utils/text_utils.py209def _resolve_retrieval_stopwords(CODE
LOWpackages/shared-python/shared/utils/text_utils.py260def tokenize_contents_for_retrieval(CODE
LOW…hared-python/shared/repositories/credits_repository.py25 async def recalculate_balance_from_ledger(CODE
LOW…hared-python/shared/repositories/credits_repository.py98 async def get_recent_payment_credits(CODE
LOW…hared-python/shared/repositories/credits_repository.py123 async def get_positive_credit_total_by_transaction_types(CODE
LOW…-python/shared/repositories/credits_sync_repository.py20 def recalculate_balance_from_ledger(CODE
LOW…-python/shared/repositories/credits_sync_repository.py64 def get_recent_payment_credits(CODE
LOW…-python/shared/repositories/credits_sync_repository.py81 def get_positive_credit_total_by_transaction_types(CODE
LOW…es/shared-python/shared/models/schemas/job_metadata.py174 def get_processing_generation(metadata: Optional[Dict[str, Any]]) -> str:CODE
LOW…ed-python/shared/models/schemas/retrieval_namespace.py6def normalize_retrieval_namespace(namespace: str | None) -> str:CODE
LOW…shared-python/shared/testing/postgresql_environment.py8def _get_common_postgresql_bin_directories() -> tuple[Path, ...]:CODE
LOW…kages/shared-python/shared/testing/contract_runtime.py131def _reset_contract_storage_state(database_url: str) -> None:CODE
LOW…kages/shared-python/shared/testing/contract_runtime.py141def _ensure_contract_postgresql_port(database_url: URL) -> None:CODE
LOW…kages/shared-python/shared/testing/contract_runtime.py151def _resolve_base_database_url(CODE
LOW…kages/shared-python/shared/testing/contract_runtime.py180def get_contract_database_url(CODE
LOW…kages/shared-python/shared/testing/contract_runtime.py189def _get_contract_sync_database_url() -> str:CODE
LOW…kages/shared-python/shared/testing/contract_runtime.py196def _get_admin_sync_database_url() -> str:CODE
LOW…kages/shared-python/shared/testing/contract_runtime.py203def _build_admin_sync_database_url(contract_database_url: str) -> str:CODE
LOW…kages/shared-python/shared/testing/contract_runtime.py209def _reset_redis_service_factory() -> None:CODE
LOW…kages/shared-python/shared/testing/contract_runtime.py301def _configure_contract_redis(monkeypatch: MonkeyPatch) -> None:CODE
834 more matches not shown…
Unused Imports567 hits · 554 pts
SeverityFileLineSnippetContext
LOWpackages/shared-python/shared/core/logging.py11CODE
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
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
LOW…/shared-python/shared/tests/test_page_memory_config.py1CODE
LOW…ed-python/shared/tests/test_page_memory_vlm_limiter.py1CODE
LOWpackages/shared-python/shared/utils/utc_now.py3CODE
LOWpackages/shared-python/shared/utils/json_utils.py3CODE
LOWpackages/shared-python/shared/utils/token_estimate.py7CODE
LOWpackages/shared-python/shared/repositories/__init__.py5CODE
LOWpackages/shared-python/shared/repositories/__init__.py6CODE
LOWpackages/shared-python/shared/models/__init__.py3CODE
507 more matches not shown…
Excessive Try-Catch Wrapping447 hits · 482 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.py246 except Exception as e:CODE
LOWpackages/shared-python/shared/core/database.py255 except Exception as e:CODE
LOWpackages/shared-python/shared/core/database.py269 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.py118 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.py165 except Exception as e:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py170 except Exception as rollback_err:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py250 except Exception as e:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py293 except Exception as e:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py336 except Exception as e:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py341 except Exception as rollback_err:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py430 except Exception as e:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py462 except Exception as e:CODE
LOW…hared-python/shared/core/state_machine/service_sync.py470 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.py252 except Exception as e:STRING
LOWpackages/shared-python/shared/utils/json_utils.py48 except Exception: # pragma: no coverCODE
LOWpackages/shared-python/shared/utils/json_utils.py65 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.py41 except Exception as exc:CODE
LOWpackages/shared-python/shared/services/worker_health.py74 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
387 more matches not shown…
Decorative Section Separators131 hits · 415 pts
SeverityFileLineSnippetContext
MEDIUM…hared-python/shared/core/state_machine/service_sync.py49 # ── Public API ──────────────────────────────────────────────────────COMMENT
MEDIUM…hared-python/shared/core/state_machine/service_sync.py345 # ── 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.py147 # =======================================================================COMMENT
MEDIUM…ed-python/shared/core/exceptions/knowhere_exception.py149 # =======================================================================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.py40 # ── Public API ──────────────────────────────────────────────────────COMMENT
MEDIUM…thon/shared/services/retrieval/agentic/orchestrator.py356 # ══════════════════════════════════════════════════════════════════COMMENT
MEDIUM…thon/shared/services/retrieval/agentic/orchestrator.py358 # ══════════════════════════════════════════════════════════════════COMMENT
MEDIUM…shared/services/retrieval/agentic/navigation/assets.py373 # ── Route by asset type ──────────────────────────────────────────COMMENT
MEDIUM…ared/services/retrieval/agentic/navigation/document.py257 # ── Execute asset tools (SEARCH) ─────────────────────────────COMMENT
MEDIUM…ared/services/retrieval/agentic/navigation/document.py301 # ── Process COLLECT ──────────────────────────────────────────COMMENT
MEDIUM…ared/services/retrieval/agentic/navigation/document.py316 # ── Process navigation action ────────────────────────────────COMMENT
MEDIUM…ared/services/retrieval/agentic/navigation/document.py364 # ── Build trace entry ────────────────────────────────────────COMMENT
MEDIUM…ared/services/retrieval/agentic/navigation/document.py396 # ── Record decision step ─────────────────────────────────────COMMENT
MEDIUM…ared/services/retrieval/agentic/navigation/document.py489 # ── Navigate summary — record exit reason and final state ─────COMMENT
MEDIUM…/shared/services/retrieval/agentic/navigation/state.py63 # ── Coverage helpers (single source: collected_paths) ────────────────COMMENT
MEDIUM…/shared/services/retrieval/agentic/navigation/state.py84 # ── Snapshot / delta for replayable traces ──────────────────────────COMMENT
MEDIUM…/shared/services/retrieval/agentic/navigation/state.py117 # ── Mutation helpers ────────────────────────────────────────────────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
71 more matches not shown…
Deep Nesting114 hits · 112 pts
SeverityFileLineSnippetContext
LOWpackages/shared-python/shared/core/logging.py115CODE
LOWpackages/shared-python/shared/core/database.py82CODE
LOWpackages/shared-python/shared/core/celery_router.py216CODE
LOWpackages/shared-python/shared/core/config/database.py61CODE
LOW…hared-python/shared/core/state_machine/service_sync.py72CODE
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.py357CODE
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.py36CODE
LOW…d-python/shared/services/storage/zip_doc_navigation.py127CODE
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…d-python/shared/services/retrieval/hydration/assets.py159CODE
LOW…shared/services/retrieval/hydration/result_assembly.py16CODE
LOW…shared/services/retrieval/agentic/evidence/renderer.py11CODE
LOW…shared/services/retrieval/agentic/evidence/renderer.py131CODE
LOW…/shared/services/retrieval/agentic/navigation/tools.py36CODE
LOW…hared/services/retrieval/agentic/navigation/actions.py48CODE
LOW…shared/services/retrieval/agentic/navigation/assets.py155CODE
LOW…ared/services/retrieval/agentic/navigation/document.py1257CODE
LOW…ared/services/retrieval/agentic/navigation/document.py158CODE
LOW…/services/retrieval/agentic/navigation/section_tree.py140CODE
LOW…d-python/shared/services/retrieval/execution/routes.py158CODE
LOW…ed-python/shared/services/retrieval/workflow/wallet.py50CODE
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.py114CODE
LOW…ges/shared-python/shared/services/ai/prompt_service.py119CODE
LOW…ges/shared-python/shared/services/ai/summary/engine.py73CODE
LOW…ges/shared-python/shared/services/ai/summary/engine.py98CODE
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
LOWapps/api/scripts/log_manager.py163CODE
LOWapps/api/scripts/log_manager.py38CODE
LOWapps/api/scripts/log_manager.py101CODE
LOWapps/api/scripts/log_manager.py127CODE
LOWapps/worker/app/core/tasks/stale_job_sweeper.py37CODE
LOWapps/worker/app/core/tasks/webhook_tasks.py103CODE
LOW…ices/document_parser/tables/dataframe_html_renderer.py8CODE
LOW…ices/document_parser/tables/dataframe_html_renderer.py101CODE
LOW…/services/document_parser/tables/table_frame_parser.py22CODE
LOW…/services/document_parser/tables/table_frame_parser.py233CODE
LOW…p/services/document_parser/tables/dataframe_helpers.py54CODE
LOW…s/document_parser/formats/markdown/deferred_summary.py161CODE
LOW…pp/services/document_parser/formats/markdown/parser.py73CODE
LOW…pp/services/document_parser/formats/markdown/parser.py141CODE
LOW…pp/services/document_parser/formats/markdown/parser.py227CODE
54 more matches not shown…
Modern Structural Boilerplate64 hits · 66 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__.py24__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__.py47__all__ = [CODE
LOW…es/shared-python/shared/models/schemas/job_metadata.py101 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.py13__all__ = ["merge_channels_rrf", "run_retrieval_query"]CODE
LOW…ared-python/shared/services/retrieval/graph/service.py30logger = logging.getLogger(__name__)CODE
LOW…-python/shared/services/retrieval/workflow/__init__.py6__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/api/v2/routes/retrieval.py5__all__ = ["router"]CODE
LOW…pi/app/services/auth/api_key_authentication_service.py173 async def _update_last_used_best_effort(self, api_key_id: str) -> None: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.py236__all__ = ["profile_document"]CODE
LOW…pp/services/document_parser/profiling/profile_model.py83__all__ = ["ParserDocumentProfile", "ParserTocProfile", "TocEvidence"]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.py902__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__.py23__all__ = [CODE
LOW…orker/app/services/document_agent/tools/page_locate.py16__all__ = ["grep_title_pages", "verify_section_page"]CODE
LOW…s/worker/app/services/document_agent/tools/__init__.py14__all__ = ["REGISTRY"]CODE
LOW…p/services/document_agent/bootstrap/aggregate_stats.py156__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__.py7__all__ = ["aggregate_doc_stats", "classify_page_kinds", "probe_page_features"]CODE
LOW…/worker/app/services/document_agent/bootstrap/probe.py5__all__ = ["probe_page_features"]CODE
LOW…worker/app/services/document_agent/planner/__init__.py9__all__ = [CODE
LOW…/worker/app/services/document_agent/planner/prompts.py20__all__ = ["PLANNER_INSTRUCTIONS"]CODE
LOW…orker/app/services/document_agent/executor/__init__.py9__all__ = [CODE
4 more matches not shown…
Cross-File Repetition9 hits · 45 pts
SeverityFileLineSnippetContext
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
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 Confusion7 hits · 42 pts
SeverityFileLineSnippetContext
HIGHpackages/shared-python/shared/services/ai/llm_mock.py283 "detect-toc-range": '{"toc_start": null, "toc_end": null, "confidence": "low"}',CODE
HIGHpackages/shared-python/shared/services/ai/llm_mock.py288 '"entities": [], "chart": null}'CODE
HIGHpackages/shared-python/shared/services/ai/llm_mock.py296 '"entities": [], "chart": null}'CODE
HIGH…ges/shared-python/shared/services/ai/prompt_service.py1012 "toc_start": null,CODE
HIGH…ges/shared-python/shared/services/ai/prompt_service.py1013 "toc_end": null,CODE
HIGHapps/api/scripts/ensure_test_environment.py53 "Ubuntu: sudo apt-get update && sudo apt-get install -y "CODE
HIGH…services/document_agent/structure/page_locate_agent.py387 "Return strict JSON: {\"selected_page\": number|null, "CODE
Self-Referential Comments10 hits · 36 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.py52# Create the shared application config instance.COMMENT
MEDIUMpackages/shared-python/shared/core/config/app.py58# Create the Redis connection-pool manager.COMMENT
MEDIUMpackages/shared-python/shared/core/config/app.py61# Create the Redis config manager.COMMENT
MEDIUM…ared/services/retrieval/agentic/navigation/document.py1252 # Create the child node on the targetCOMMENT
MEDIUMapps/api/scripts/reset_alembic.py21 # Create the SQLAlchemy engine.COMMENT
MEDIUM…pp/services/document_parser/formats/markdown/parser.py372 # Create a placeholder chunk so the previous heading's pathCOMMENT
Over-Commented Block37 hits · 34 pts
SeverityFileLineSnippetContext
LOW…ges/shared-python/shared/services/ai/prompt_service.py721 max_tokens = kwargs.get("paras", {}).get("max_tokens", 1200)COMMENT
LOW…ges/shared-python/shared/services/ai/prompt_service.py741 # ]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.txt61botocore==1.38.46COMMENT
LOWapps/worker/requirements.txt81 # geventCOMMENT
LOWapps/worker/requirements.txt101 # clickCOMMENT
LOWapps/worker/requirements.txt121 # via email-validatorCOMMENT
LOWapps/worker/requirements.txt141frozenlist==1.8.0COMMENT
LOWapps/worker/requirements.txt161httpx==0.28.1COMMENT
LOWapps/worker/requirements.txt181jiter==0.14.0COMMENT
LOWapps/worker/requirements.txt201magika==0.6.2COMMENT
LOWapps/worker/requirements.txt221networkx==3.6.1COMMENT
LOWapps/worker/requirements.txt241 # knowhere-sharedCOMMENT
LOWapps/worker/requirements.txt261 # viaCOMMENT
LOWapps/worker/requirements.txt281 # opentelemetry-exporter-otlp-proto-httpCOMMENT
LOWapps/worker/requirements.txt301 # via knowhere-worker-appCOMMENT
LOWapps/worker/requirements.txt321 # via pytestCOMMENT
LOWapps/worker/requirements.txt341 # viaCOMMENT
LOWapps/worker/requirements.txt361pydantic-settings==2.14.1COMMENT
LOWapps/worker/requirements.txt381pypdf==6.10.2COMMENT
LOWapps/worker/requirements.txt401 # viaCOMMENT
LOWapps/worker/requirements.txt421rank-bm25==0.2.2COMMENT
LOWapps/worker/requirements.txt441 # via boto3COMMENT
LOWapps/worker/requirements.txt461starlette==0.52.1COMMENT
LOWapps/worker/requirements.txt481 # beautifulsoup4COMMENT
LOWapps/worker/requirements.txt501 # fastapiCOMMENT
LOWapps/worker/requirements.txt521 # via loguruCOMMENT
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.py67 # Step 1: sum lifetime successful payments in micro-dollarsCOMMENT
LOWapps/api/app/services/rate_limit/tier_service.py89 # Step 4: persist the tier on user_balancesCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py146 # Step 1: Start taskCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py175 # Step 2: Upload from memory (BytesIO, no disk write)COMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py198 # Step 3: ProcessCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py225 # Step 4: Download PDF to memoryCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py446 # Step 1: PPTX → PDF (in memory)COMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py116 # Step 1: find all TOC keywordsCOMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py122 # Step 2: if no TOC keywords found, use the first line as the candidate areaCOMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py131 # Step 3: build candidate areas for each start indexCOMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py285 # Step 1: detect candidate areas (may be multiple)COMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py293 # Step 2: evaluate each candidate area with LLM (parallel when multiple)COMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py513 # 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.py67 # Step 1: sum lifetime successful payments in micro-dollarsCOMMENT
LOWapps/api/app/services/rate_limit/tier_service.py89 # Step 4: persist the tier on user_balancesCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py146 # Step 1: Start taskCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py175 # Step 2: Upload from memory (BytesIO, no disk write)COMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py198 # Step 3: ProcessCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py225 # Step 4: Download PDF to memoryCOMMENT
LOW…er/app/services/document_parser/formats/pptx/parser.py446 # Step 1: PPTX → PDF (in memory)COMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py116 # Step 1: find all TOC keywordsCOMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py122 # Step 2: if no TOC keywords found, use the first line as the candidate areaCOMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py131 # Step 3: build candidate areas for each start indexCOMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py285 # Step 1: detect candidate areas (may be multiple)COMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py293 # Step 2: evaluate each candidate area with LLM (parallel when multiple)COMMENT
LOW…r/app/services/document_parser/structure/toc_parser.py513 # Step 3: Remove TOC lines from md_lines (process in reverse order to correct indices)COMMENT
AI Slop Vocabulary13 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUM…s/shared-python/shared/services/redis/redis_monitor.py261 """Get a comprehensive monitoring report."""STRING
MEDIUM…fy26-annual-report/tables/table-77 Equity Changes.html1<table border='1' border='1'><tr><td rowspan="2"></td><td colspan="2">Common Stock Outstanding</td><td rowspan="2">AdditCODE
MEDIUM…-fy26-annual-report/tables/table-76 Balance Sheet.html1<table border='1' border='1'><tr><td></td><td>Jan 25, 2026</td><td>Jan 26, 2025</td></tr><tr><td colspan="3">Assets</td>CODE
MEDIUM…pp/data/demo_documents/research-rag-survey/chunks.json486 "content": "19\n[89] Langchain, “Recursively split by character,” https://python.langchain.\ncom/docs/modules/dataCODE
MEDIUM…pp/data/demo_documents/research-rag-survey/chunks.json550 "content": "International Conference on Computational Linguistics, 2002.\n[156] R. Socher, A. Perelygin, J. Wu, J.CODE
MEDIUM…/data/demo_documents/research-rag-realized/chunks.json310 "content": "19:2:4. Version \nTitle: T orah Commentary by Rabbi Bachya ben Asher, trans. \nEliyahu Munk, 1998.. DoCODE
MEDIUM…ta/demo_documents/financial-goog-10-k-2025/chunks.json11475 "content": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">Class A, Class B, Class C Stock and Additional PaiCODE
MEDIUM…og-10-k-2025/tables/table-24 Stockholders' Equity.html1<table border='1' border='1'><tr><td rowspan="2"></td><td colspan="2">Class A, Class B, Class C Stock and Additional PaiCODE
MEDIUM…s/spacex-s1/tables/table-123 Stockholders' Equity.html1<table border='1' border='1'><tr><td rowspan="2"></td><td colspan="2">Redeemable Convertible Preferred Stock</td><td colCODE
MEDIUM…o_documents/financial-meta-q1-2026-results/chunks.json725 "content": "<table><tr><td></td><td>March 31, 2026</td><td>December 31, 2025</td></tr><tr><td colspan=\"3\">AssetsCODE
MEDIUM…meta-q1-2026-results/tables/table-2 Balance Sheet.html1<table border='1' border='1'><tr><td></td><td>March 31, 2026</td><td>December 31, 2025</td></tr><tr><td colspan="3">AsseCODE
MEDIUM…pp/services/document_agent/tools/propose_shard_plan.py256 # entry (siblings are not ancestors). This is robust to non-monotonicCOMMENT
MEDIUMapps/worker/experiments/chart_asset_probe.py64# BOTH axes, with origin at the top-left of the page image. This is robustCOMMENT
Modern AI Meta-Vocabulary9 hits · 23 pts
SeverityFileLineSnippetContext
MEDIUMAGENTS.md240│ ├── doc_nav.json # Hierarchical navigation tree for agentic retrievalCODE
MEDIUM…hon/shared/services/retrieval/workflow/orchestrator.py141 # TODO(retrieval-agentic-nav): redesign this outer workflow as a realCOMMENT
MEDIUM…hon/shared/services/retrieval/workflow/orchestrator.py145 # a sub-agent and should not take over cross-document orchestration.COMMENT
MEDIUMpackages/shared-python/shared/services/ai/llm_mock.py23 # For agentic tasks that need dynamic content extraction, build the response here.COMMENT
MEDIUM…pp/data/demo_documents/research-rag-survey/chunks.json550 "content": "International Conference on Computational Linguistics, 2002.\n[156] R. Socher, A. Perelygin, J. Wu, J.CODE
MEDIUM…/demo_documents/stem-jurafsky-transformers/chunks.json21 "content": "8\nTransformers\n\"The true art of memory is the art of attention\"\nSamuel Johnson, Idler #74, SeptemCODE
MEDIUM…pp/data/demo_documents/research-toolformer/chunks.json230 "content": "Example L−\ni −L+\ni Useful\nThe Flodden Window (a war memorial dedicated to The Middleton Archers), iCODE
MEDIUM…/versions/e5f6a7b8c9d0_add_agentic_retrieval_tables.py21 # ── retrieval_runs: one row per agentic retrieval query ──COMMENT
MEDIUM…pp/services/document_parser/formats/markdown/parser.py421 # integrate tabula-py as an independent extraction path to solve VLM hallucinations and misplacementCOMMENT
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.py16CODE
LOW…ared-python/shared/services/retrieval/cache_service.py34CODE
LOW…ared-python/shared/services/retrieval/agentic/tools.py77CODE
LOW…thon/shared/services/retrieval/agentic/orchestrator.py65CODE
LOW…/shared/services/retrieval/agentic/navigation/tools.py36CODE
LOW…red-python/shared/services/retrieval/execution/plan.py23CODE
LOW…n/shared/services/retrieval/execution/query_request.py35CODE
LOW…hon/shared/services/retrieval/workflow/orchestrator.py62CODE
LOW…ges/shared-python/shared/services/ai/summary/engine.py196CODE
LOW…ges/shared-python/shared/services/ai/summary/engine.py216CODE
LOW…ges/shared-python/shared/services/ai/summary/engine.py235CODE
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.py227CODE
LOW…pp/services/document_parser/structure/layout_parser.py454CODE
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.py279Run PyMuPDF work through a bounded gevent threadpool slot. Args: worker_fn: Top-level function with signatuSTRING
Redundant / Tautological Comments8 hits · 12 pts
SeverityFileLineSnippetContext
LOW…ges/shared-python/shared/services/ai/token_tracking.py43 # 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
AI Response Leakage2 hits · 10 pts
SeverityFileLineSnippetContext
HIGH…demo_documents/stem-transformers-tutorial/doc_nav.json390 "summary": "Output MLM teaches BERT to understand relationships between words 3. Each token moves away froCODE
HIGH…/demo_documents/stem-transformers-tutorial/chunks.json2934 "content": "Output\nMLM teaches BERT to understand relationships between words\n\n3. Each token moves away from hiCODE
Slop Phrases4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUM…ocuments/financial-micron-report-9c0becf5/doc_nav.json256 "summary": "- We expect higher price, lower cost and favorable mix to all contribute to gross margin expansionCODE
MEDIUM…documents/financial-micron-report-9c0becf5/chunks.json2896 "content": "- We expect higher price, lower cost and favorable mix to all contribute to gross margin expansion in CODE
MEDIUM…cuments/financial-nvda-fy26-annual-report/doc_nav.json472 "summary": "As discussed above, the NCGC and the Board understand the importance of Board refreshment. On CODE
MEDIUM…/demo_documents/stem-jurafsky-transformers/chunks.json2778 "content": "We described the training process for language models in the prior chapter. Recall that large languageCODE
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