AI Slop Code RIsk Monitor

maziyarpanahi/openmed

Local-first healthcare AI: clinical NER and HIPAA PII de-identification on hardware you control. 2,200+ medical models, 35 model-backed PII languages, and Python, MLX, Android and browser runtimes. Apache-2.0 SDK.

25.1 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for maziyarpanahi/openmed, a Python project with 5,506 GitHub stars. SynthScan examined 1,498,535 lines of code across 4238 source files, recording 35390 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 25.1 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

25.1
Adjusted Signal
25.1
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
5.5K
Stars
Python
Language
1.5M
Lines of Code
4.2K
Files
35.4K
Pattern Hits
2026-10-12
Scan Date
0.20
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 51.5/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 24.4/100 · LOW

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

Agent Over-Engineering Ratio 58.4/100 · HIGH

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

PR Review Velocity Impact 75.0/100 · CRITICAL

Which changes need focused human review? 35390 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 856MEDIUM 957LOW 33577

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

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

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

Hyper-Verbose Identifiers18462 hits · 18521 pts
SeverityFileLineSnippetContext
LOWpackaging/standalone_manifest.py484def _validate_entry_collection(CODE
LOWopenmed/__init__.py278def _split_prediction_at_boundaries(CODE
LOWopenmed/traces/audit.py461def _merged_byte_range_length(ranges: Iterable[ByteRange]) -> int:CODE
LOWopenmed/traces/fidelity.py867def _is_path_segment_sequence(items: Sequence[Any]) -> bool:CODE
LOWopenmed/traces/fidelity.py873def _looks_like_path_expression(value: object) -> bool:CODE
LOWopenmed/traces/streaming.py114def _validate_positive_integer(value: int, name: str) -> int:CODE
LOWopenmed/traces/tool_calls.py141def redact_tool_call_with_report(CODE
LOW⚡openmed/traces/schemas/preference.py557 def redact_dataset_with_report(CODE
LOWopenmed/traces/schemas/preference.py686def redact_preference_dataset(CODE
LOWopenmed/traces/schemas/preference.py864def _contains_source_fragment(source: str, candidate: str) -> bool:CODE
LOWopenmed/traces/schemas/columnar.py129def iter_redacted_record_batches(CODE
LOWopenmed/traces/schemas/chat.py862def redact_chat_record_with_report(CODE
LOWopenmed/traces/schemas/chat.py926def redact_chat_messages_with_report(CODE
LOWopenmed/core/repro_hash.py43def compute_canonical_payload_hash(payload: Any) -> str:CODE
LOWopenmed/core/repro_hash.py63def compute_reproducibility_hash(CODE
LOWopenmed/core/repro_hash.py113def compute_environment_lock_digest(lock_path: str | Path = "uv.lock") -> str:CODE
LOWopenmed/core/repro_hash.py119def compute_training_reproducibility_hash(CODE
LOWopenmed/core/repro_hash.py149def build_training_provenance(CODE
LOWopenmed/core/repro_hash.py197def write_training_provenance(CODE
LOWopenmed/core/repro_hash.py289def canonicalize_span_records(spans: Iterable[Any]) -> list[dict[str, Any]]:CODE
LOWopenmed/core/repro_hash.py458def _normalise_training_provenance(provenance: Mapping[str, Any]) -> dict[str, Any]:CODE
LOWopenmed/core/repro_hash.py531def _verify_manifest_row_hash(row: Mapping[str, Any], recorded_hash: str) -> None:CODE
LOWopenmed/core/document_stream.py332def _select_overlap_sentences(CODE
LOWopenmed/core/document_stream.py606def deidentify_document_stream(CODE
LOWopenmed/core/labels.py616def canonical_label_for_column_semantic(semantic_type: str) -> str:CODE
LOWopenmed/core/labels.py2448def supports_name_boundary_refinement(label: str, lang: str = "en") -> bool:CODE
LOWopenmed/core/quality_gates.py301def validate_entity_spans_strict(CODE
LOWopenmed/core/quality_gates.py362def resolve_overlapping_entities(CODE
LOWopenmed/core/quality_gates.py426def detect_overlapping_entities(CODE
LOWopenmed/core/key_custody.py389def validate_key_custody_metadata(CODE
LOWopenmed/core/key_custody.py450def require_valid_key_custody_metadata(CODE
LOWopenmed/core/key_custody.py857def _validate_transition_sequence(CODE
LOWopenmed/core/key_custody.py952def _validate_cross_record_invariants(CODE
LOWopenmed/core/key_custody.py1021def _looks_like_encoded_material(value: str) -> bool:CODE
LOWopenmed/core/clinical_identifiers.py90def detect_clinical_identifiers(text: str, *, language: str) -> list[EntityPrediction]:CODE
LOWopenmed/core/config.py145def _property_validation_errors(CODE
LOWopenmed/core/audit.py98def _contains_sensitive_india_identifier(value: str) -> bool:CODE
LOWopenmed/core/audit.py208def _safe_attribute_disclosure(value: Any) -> list[dict[str, Any]]:CODE
LOWopenmed/core/audit.py248def _sanitize_release_assessment(value: Mapping[str, Any]) -> dict[str, Any]:CODE
LOWopenmed/core/audit.py321def _safe_generalization_summary(value: Any) -> dict[str, Any]:CODE
LOWopenmed/core/audit.py396def _sanitize_anonymization_summary(value: Mapping[str, Any]) -> dict[str, Any]:CODE
LOWopenmed/core/audit.py443def _looks_like_detailed_risk_report(value: Mapping[str, Any]) -> bool:CODE
LOWopenmed/core/audit.py451def _sanitize_detailed_risk_report(value: Mapping[str, Any]) -> dict[str, Any]:CODE
LOWopenmed/core/audit.py561def _looks_like_kanon_enforcement(value: Mapping[str, Any]) -> bool:CODE
LOWopenmed/core/audit.py567def _sanitize_kanon_enforcement(value: Mapping[str, Any]) -> dict[str, Any]:CODE
LOWopenmed/core/audit.py1299 def export_review_bundle_json(self) -> str:CODE
LOWopenmed/core/export_naming.py86def _looks_like_raw_identifier(value: str) -> bool:CODE
LOWopenmed/core/export_naming.py117def _normalise_schema_version(value: object) -> str:CODE
LOWopenmed/core/export_naming.py178def _normalise_fingerprint_length(value: object) -> int:CODE
LOWopenmed/core/export_naming.py208def _normalise_explicit_timestamp(value: object) -> str | None:CODE
LOWopenmed/core/export_naming.py364def _snapshot_metadata_mapping(value: Mapping[str, Any]) -> dict[str, Any]:CODE
LOWopenmed/core/models.py51def _ensure_hf_auto_tokenizer() -> None:CODE
LOWopenmed/core/models.py168 def load_local_sequence_classifier(CODE
LOWopenmed/core/models.py778 def _resolve_attn_implementation(CODE
LOWopenmed/core/models.py791 def _apply_attention_pipeline_kwargs(self, pipeline_kwargs: Dict[str, Any]) -> None:CODE
LOWopenmed/core/models.py929 def _build_load_quantization_config(CODE
LOWopenmed/core/models.py961 def _build_pipeline_cache_key(CODE
LOWopenmed/core/surrogate_key_provider.py231def require_surrogate_key_capabilities(CODE
LOWopenmed/core/surrogate_key_provider.py258def validate_surrogate_key_provider(CODE
LOWopenmed/core/surrogate_vault.py304def _validated_name_matching_metadata(CODE
18402 more matches not shown…
Unused Imports11018 hits · 7405 pts
SeverityFileLineSnippetContext
LOWpackaging/standalone_manifest.py18CODE
LOWopenmed/__init__.py3CODE
LOWopenmed/__init__.py11CODE
LOWopenmed/__init__.py14CODE
LOWopenmed/__init__.py14CODE
LOWopenmed/__init__.py14CODE
LOWopenmed/__init__.py14CODE
LOWopenmed/__init__.py15CODE
LOWopenmed/__init__.py16CODE
LOWopenmed/__init__.py16CODE
LOWopenmed/__init__.py16CODE
LOWopenmed/__init__.py21CODE
LOWopenmed/__init__.py21CODE
LOWopenmed/__init__.py21CODE
LOWopenmed/__init__.py26CODE
LOWopenmed/__init__.py26CODE
LOWopenmed/__init__.py26CODE
LOWopenmed/__init__.py26CODE
LOWopenmed/__init__.py26CODE
LOWopenmed/__init__.py34CODE
LOWopenmed/__init__.py35CODE
LOWopenmed/aio.py9CODE
LOWopenmed/aio.py30CODE
LOWopenmed/aio.py32CODE
LOWopenmed/aio.py35CODE
LOWopenmed/traces/audit.py10CODE
LOWopenmed/traces/discovery.py8CODE
LOWopenmed/traces/transaction.py10CODE
LOWopenmed/traces/__init__.py3CODE
LOWopenmed/traces/__init__.py3CODE
LOWopenmed/traces/__init__.py3CODE
LOWopenmed/traces/__init__.py3CODE
LOWopenmed/traces/__init__.py3CODE
LOWopenmed/traces/__init__.py3CODE
LOWopenmed/traces/__init__.py3CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py12CODE
LOWopenmed/traces/__init__.py29CODE
LOWopenmed/traces/__init__.py29CODE
LOWopenmed/traces/__init__.py29CODE
LOWopenmed/traces/__init__.py29CODE
LOWopenmed/traces/__init__.py29CODE
LOWopenmed/traces/__init__.py29CODE
LOWopenmed/traces/__init__.py29CODE
LOWopenmed/traces/__init__.py29CODE
LOWopenmed/traces/__init__.py29CODE
LOWopenmed/traces/__init__.py29CODE
10958 more matches not shown…
Decorative Section Separators851 hits · 3028 pts
SeverityFileLineSnippetContext
MEDIUMopenmed/core/labels.py25# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/labels.py27# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/labels.py641# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/labels.py643# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/labels.py1644# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/labels.py1646# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/config.py850# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/config.py852# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/review_workflow.py567# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/review_workflow.py569# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_entity_merger.py113# ============================================================================COMMENT
MEDIUMopenmed/core/pii_entity_merger.py115# ============================================================================COMMENT
MEDIUMopenmed/core/pii_entity_merger.py581# ============================================================================COMMENT
MEDIUMopenmed/core/pii_entity_merger.py583# ============================================================================COMMENT
MEDIUM⚡openmed/core/pii_i18n.py498# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡openmed/core/pii_i18n.py500# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡openmed/core/pii_i18n.py4886# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡openmed/core/pii_i18n.py4888# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡openmed/core/pii_i18n.py13191# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡openmed/core/pii_i18n.py13193# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py68# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py70# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py215# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py217# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py418# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py420# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py858# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py860# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py3499# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py3501# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py4128# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py4130# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py4277# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py4279# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py4832# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py4834# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py4987# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py4989# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py8989# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py8991# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9193# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9195# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9273# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9275# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9337# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9339# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9399# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9401# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9463# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9465# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9527# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9529# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9600# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9602# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9664# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py9666# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py10934# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py10936# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py11264# ---------------------------------------------------------------------------COMMENT
MEDIUMopenmed/core/pii_i18n.py11266# ---------------------------------------------------------------------------COMMENT
791 more matches not shown…
Docstring Block Structure402 hits · 2010 pts
SeverityFileLineSnippetContext
HIGHopenmed/traces/transaction.py145Redact one local text file with an atomic in-place commit. Args: path: Existing regular file to replace. STRING
HIGHopenmed/traces/fidelity.py472Verify structural fidelity after a trace transformation. Args: original: The pre-redaction JSON-like trace.STRING
HIGHopenmed/traces/parallel.py348Partition trace paths into bounded shards without reordering them. Args: files: An iterable of local paths,STRING
HIGHopenmed/traces/tool_calls.py103Return a structure-preserving redaction of one tool-call payload. Args: tool_call: JSON-compatible tool-calSTRING
HIGHopenmed/traces/schemas/columnar.py70Redact configured text leaves in one Arrow record batch. ``text_columns`` contains top-level column names or dottedSTRING
HIGHopenmed/core/config.py562Create config from a named profile. Args: profile_name: Name of a built-in or custom profile. STRING
HIGHopenmed/core/config.py874Get the settings for a specific profile. Args: profile_name: Name of the profile. Returns: DicSTRING
HIGHopenmed/core/config.py927Delete a custom profile. Args: profile_name: Name of the profile to delete. Returns: True if dSTRING
HIGHopenmed/core/models.py247Load a TokenClassification model and tokenizer. Missing architecture metadata does not prevent loading; it onlySTRING
HIGHopenmed/core/config_provenance.py213Resolve configuration sources and produce value-free provenance. The deterministic precedence order is ``default < STRING
HIGHopenmed/core/locale_formats.py705Return date order and number separators for an OpenMed language code. Args: lang: OpenMed ISO 639-1 languagSTRING
HIGHopenmed/core/hf_hub.py127Resolve a registry alias or bare name to a fully-qualified Hub repo id. A value that already looks like a Hub id (cSTRING
HIGHopenmed/core/hf_hub.py171Pre-download an OpenMed model snapshot and return its local path. The friendly *name_or_alias* is resolved to a HubSTRING
HIGHopenmed/core/hf_hub.py706Return the OpenMed model repos present in the local Hugging Face cache. The scan is read-only and never touches theSTRING
HIGHopenmed/core/hf_hub.py768Return the current Hub snapshot size for one model in decimal MB. This is the only size helper that performs a netwSTRING
HIGHopenmed/core/hf_hub.py809Delete a single OpenMed repo from the local Hugging Face cache. Args: name: Registry key, repo id, or bare STRING
HIGHopenmed/core/local_identifiers.py130Return username entities found in absolute local paths. Args: text: Text containing logs, traces, or other STRING
HIGHopenmed/core/budget.py229Validate and return a :class:`RequestBudget` or ``None``. Accepts an existing :class:`RequestBudget`, ``None`` (unlSTRING
HIGHopenmed/core/review_workflow.py339Build a review queue from an extraction or de-identification result. Surfaces the spans a human should look at befoSTRING
HIGHopenmed/core/review_workflow.py455Capture a reviewer's decision about a review item as a feedback record. Args: item: The :class:`ReviewItem`STRING
HIGHopenmed/core/review_workflow.py543Append one feedback record to a local JSONL file. The file is created if it does not exist. Each call appends a sinSTRING
HIGHopenmed/core/telemetry.py90Parse an explicit telemetry opt-in value. Args: raw_value: Environment or configuration value. ``None``, anSTRING
HIGHopenmed/core/telemetry.py126Return the no-PHI subset of candidate stage attributes. String values are never accepted generically. Stage names mSTRING
HIGHopenmed/core/text_normalize.py85Translate a normalized half-open span to source offsets. Args: start: Inclusive normalized code-poiSTRING
HIGHopenmed/core/script_detect.py1741Decode untrusted multilingual bytes using an explicit codec allow-list. Codec names are normalized through a staticSTRING
HIGHopenmed/core/deletion_verify.py1003Verify and delete files under ``root`` with process-local rollback. Args: root: Existing directory that bouSTRING
HIGHopenmed/core/capabilities.py328Return an importless :class:`BackendStatus` for a single backend. Args: name: A registered capability key (STRING
HIGHopenmed/core/iso_temporal.py58Parse an extended calendar date with a stable, value-free failure. Args: value: An ASCII ``YYYY-MM-DD`` calSTRING
HIGHopenmed/core/iso_temporal.py81Parse an extended calendar date and optional colon-separated time. Args: value: ``YYYY-MM-DD`` optionally fSTRING
HIGHopenmed/core/iso_temporal.py117Parse a colon-separated clock time using the same explicit profile. Args: value: ``HH[:MM[:SS[.ffffff]]]`` STRING
HIGHopenmed/core/language_pack.py235Register and return a language pack. Args: pack: Fully validated language-pack declaration. STRING
HIGHopenmed/core/language_pack.py287Return the pack registered for ``code``. Args: code: Lowercase ISO 639-1 language code. ReSTRING
HIGHopenmed/core/path_portability.py243Audit local resource paths without reading the filesystem. Args: paths: An iterable of path strings or pathSTRING
HIGHopenmed/core/pii_i18n.py2125Return the ISO 7064 MOD 11-2 check character for a 17-digit body. Args: body: The first 17 digits of a ChinSTRING
HIGHopenmed/core/pii_i18n.py5530Return the ISO 7064 MOD 31-3 check character for a USCC body. Args: body17: Seventeen characters from :dataSTRING
HIGHopenmed/core/pii_i18n.py13256Return combined PII patterns for the given language. English patterns (email, URL, IP, etc.) are universal and alwaSTRING
HIGHopenmed/core/rtl_render.py252Render de-identified ``text`` with bidi-safe masks. For a right-to-left or mixed-script document, each replacement STRING
HIGHopenmed/core/rtl_render.py338Wrap a single mask/surrogate token in ``FSI ... PDI`` isolates. A convenience for callers that build redacted outpuSTRING
HIGHopenmed/core/rtl_render.py399Remove bidi isolate/embedding/override controls and directional marks. For source text without pre-existing bidi coSTRING
HIGHopenmed/core/pii.py1356Extract PII entities from text with intelligent entity merging. Uses token classification models to detect personalSTRING
HIGHopenmed/core/pii.py2601De-identify text by detecting and redacting PII with intelligent merging. Implements multiple de-identification strSTRING
HIGHopenmed/core/pii.py3567Re-identify text using stored mapping. Restores original PII from de-identified text using the mapping created STRING
HIGHopenmed/core/decoding/viterbi.py301Decode token-class indices via constrained BIOES Viterbi. Args: token_logprobs: One inner list of class logSTRING
HIGHopenmed/core/anonymizer/format_preserve.py161Render an Aadhaar value in UIDAI's masked ``XXXX XXXX NNNN`` form. The first eight digits are never returned. AlreaSTRING
HIGHopenmed/core/anonymizer/engine.py314Apply a dedicated Aadhaar anonymization strategy. Args: original: A checksum-valid Aadhaar value. STRING
HIGHopenmed/ner/indexing.py123Discover models located under ``models_dir`` and return a structured index. Args: models_dir: Root directorSTRING
HIGHopenmed/onnx/maple_export.py182Download the immutable BF16 Maple snapshot and bind it to a receipt. Args: destination: New or empty local STRING
HIGHopenmed/onnx/tensorrt_export.py331Build and optionally certify a TensorRT token-classification engine. INT8 builds consume the shared deterministic sSTRING
HIGHopenmed/onnx/tensorrt_export.py648Verify a serialized engine against a pinned SHA-256 digest. Args: engine_path: Serialized engine to hash. STRING
HIGHopenmed/onnx/tensorrt_session.py75Run one batch and return the engine's logits as a NumPy array. Args: input_ids: Rank-two token ID bSTRING
HIGHopenmed/processing/zh_normalize.py585Parse an everyday or financial-form Chinese numeral as an integer. Digit-only forms such as ``二〇二四`` are read positSTRING
HIGHopenmed/processing/zh_segmentation.py238Create a Chinese segmenter without importing unselected backends. Args: backend: One of ``"jieba"``, ``"pkuSTRING
HIGHopenmed/processing/zh_segmentation.py299Load a jieba-format medical dictionary through bounded validation. Args: path: Plain UTF-8 dictionary or siSTRING
HIGHopenmed/processing/zh_segmentation.py464Run the shared exact-offset conformance suite against one backend. Every case is checked independently so a report STRING
HIGHopenmed/processing/text.py49Return bounded UTF-8 text safe to pass to PII normalization. The check runs before normalization allocates offset mSTRING
HIGHopenmed/processing/text.py1240Drop records fully contained by boilerplate/copy-forward annotations. Suppression is opt-in and conservative. RecorSTRING
HIGHopenmed/processing/zh_pinyin.py128Romanize Chinese text after word segmentation. Args: text: Source text to romanize. style: ``NORMALSTRING
HIGHopenmed/processing/advanced_ner.py287Extract canonical biomedical entity spans with a registry-selected model. Args: text: Clinical text to clasSTRING
HIGHopenmed/plugins/conformance.py197Require plugin components to pass the offline conformance kit. Args: components: A component, component iteSTRING
HIGHopenmed/plugins/quarantine.py214Evaluate injected plugin metadata without loading plugin code. Args: metadata: One metadata mapping or an iSTRING
342 more matches not shown…
Empty Error Handlers311 hits · 1555 pts
SeverityFileLineSnippetContext
HIGHopenmed/__init__.py576except Exception:CODE
HIGHopenmed/__init__.py571except Exception:CODE
HIGHopenmed/traces/transaction.py628except (FileNotFoundError, OSError):CODE
HIGHopenmed/traces/transaction.py461except OSError:CODE
HIGHopenmed/traces/transaction.py466except OSError:CODE
HIGHopenmed/traces/transaction.py570except OSError:CODE
HIGHopenmed/traces/jsonl.py623except OSError:CODE
HIGHopenmed/traces/parallel.py513except Exception:CODE
HIGHopenmed/core/locale_tag.py123except LocaleTagError:CODE
HIGHopenmed/core/config.py731except ValueError:CODE
HIGHopenmed/core/config.py737except ValueError:CODE
HIGHopenmed/core/config.py140except (TypeError, ValueError, OverflowError):CODE
HIGHopenmed/core/model_cache_policy.py1030except (NameError, OSError):CODE
HIGHopenmed/core/results.py22except (TypeError, ValueError):CODE
HIGHopenmed/core/surrogate_vault_crypto.py362except OSError:CODE
HIGHopenmed/core/deletion_verify.py382except OSError:CODE
HIGHopenmed/core/deletion_verify.py925except OSError:CODE
HIGHopenmed/core/deletion_verify.py685except OSError:CODE
HIGHopenmed/core/deletion_verify.py880except OSError:CODE
HIGHopenmed/core/deletion_verify.py585except OSError:CODE
HIGHopenmed/core/deletion_verify.py608except OSError:CODE
HIGHopenmed/core/deletion_verify.py650except DeletionVerificationError:CODE
HIGHopenmed/core/deletion_verify.py744except OSError:CODE
HIGHopenmed/core/deletion_verify.py1061except OSError:CODE
HIGHopenmed/core/deletion_verify.py1081except OSError:CODE
HIGHopenmed/core/deletion_verify.py1101except OSError:CODE
HIGHopenmed/core/redaction_strength.py170except ValueError:CODE
HIGHopenmed/core/iso_temporal.py73except ValueError:CODE
HIGHopenmed/core/iso_temporal.py109except ValueError:CODE
HIGHopenmed/core/iso_temporal.py133except ValueError:CODE
HIGHopenmed/core/no_phi_telemetry.py869except ValueError:CODE
HIGHopenmed/core/pii.py1998except (KeyError, TypeError, ValueError):CODE
HIGHopenmed/ner/families/indic.py403except Exception:CODE
HIGHopenmed/ner/families/indic.py310except IndicNerCompatibilityError:CODE
HIGHopenmed/ner/families/indic.py315except IndicNerCompatibilityError:CODE
HIGHopenmed/ner/families/gliner2.py152except Exception: # pragma: no cover - defensive pathCODE
HIGHopenmed/ner/families/gliner.py125except Exception: # pragma: no cover - defensive pathCODE
HIGHopenmed/onnx/gguf_embed_runtime.py326except (json.JSONDecodeError, RecursionError):CODE
HIGHopenmed/onnx/ram_budget.py200except RamProbeUnavailable:CODE
HIGHopenmed/onnx/streaming_loader.py747except (OSError, ValueError):CODE
HIGHopenmed/onnx/streaming_loader.py189except Exception:CODE
HIGHopenmed/onnx/streaming_loader.py717except BufferError:CODE
HIGHopenmed/onnx/convert.py1225except OSError:CODE
HIGHopenmed/processing/checkpoint.py278except FileNotFoundError:CODE
HIGHopenmed/processing/batch.py295except OSError: # pragma: no cover - platform/filesystem dependentCODE
HIGHopenmed/processing/batch.py335except FileNotFoundError:CODE
HIGHopenmed/processing/tokenization.py1231except (AttributeError, TypeError, ValueError):CODE
HIGHopenmed/processing/outputs.py27except (TypeError, ValueError):CODE
HIGHopenmed/processing/outputs.py51except (TypeError, ValueError):CODE
HIGHopenmed/training/directid_distill.py793except ImportError:CODE
HIGHopenmed/training/directid_distill.py799except ImportError:CODE
HIGHopenmed/interop/airflow.py851except OSError:CODE
HIGHopenmed/interop/airflow.py899except OSError:CODE
HIGHopenmed/interop/icd11_api.py857except OSError:CODE
HIGHopenmed/interop/x12_837.py626except OSError:CODE
HIGHopenmed/interop/document_quarantine.py381except (OSError, RuntimeError, ValueError, zipfile.BadZipFile):CODE
HIGHopenmed/interop/document_quarantine.py420except (TypeError, ValueError):CODE
HIGHopenmed/interop/search_pipeline.py290except TypeError:CODE
HIGHopenmed/interop/openmrs.py525except ValueError:CODE
HIGHopenmed/interop/postgres.py557except Exception:CODE
251 more matches not shown…
Excessive Try-Catch Wrapping1180 hits · 1244 pts
SeverityFileLineSnippetContext
LOWopenmed/__init__.py571 except Exception:CODE
LOWopenmed/__init__.py576 except Exception:CODE
LOWopenmed/__init__.py808 except Exception as exc: # pragma: no coverCODE
LOWopenmed/aio.py264 except Exception:CODE
LOWopenmed/traces/audit.py62 except Exception: # noqa: BLE001 - untrusted metadata must fail closedCODE
LOWopenmed/traces/audit.py69 except Exception: # noqa: BLE001 - untrusted metadata must fail closedCODE
LOWopenmed/traces/audit.py119 except Exception: # noqa: BLE001 - input may expose PHI in errorsCODE
LOWopenmed/traces/audit.py126 except Exception: # noqa: BLE001 - input may expose PHI in errorsCODE
LOWopenmed/traces/audit.py141 except Exception: # noqa: BLE001 - mapping errors may contain PHICODE
LOWopenmed/traces/audit.py171 except Exception: # noqa: BLE001 - untrusted metadata must fail closedCODE
LOWopenmed/traces/audit.py507 except Exception: # noqa: BLE001 - report inputs may contain PHICODE
MEDIUMopenmed/traces/audit.py493def __post_init__(self) -> None:CODE
LOWopenmed/traces/transaction.py330 except Exception: # noqa: BLE001 - path-like errors may contain PHICODE
LOWopenmed/traces/transaction.py341 except Exception: # noqa: BLE001 - callback text may contain PHICODE
LOWopenmed/traces/jsonl.py300 except Exception: # noqa: BLE001 - path errors may contain PHICODE
LOWopenmed/traces/jsonl.py318 except Exception: # noqa: BLE001 - I/O errors may contain PHI pathsCODE
LOWopenmed/traces/jsonl.py331 except Exception: # noqa: BLE001 - stream errors may contain PHICODE
LOWopenmed/traces/jsonl.py480 except Exception:CODE
LOWopenmed/traces/jsonl.py558 except Exception: # noqa: BLE001 - path errors may contain PHICODE
LOWopenmed/traces/jsonl.py575 except Exception: # noqa: BLE001 - path errors may contain PHICODE
LOWopenmed/traces/jsonl.py592 except Exception: # noqa: BLE001 - path errors may contain PHICODE
LOWopenmed/traces/jsonl.py607 except Exception: # noqa: BLE001 - stream errors may contain PHICODE
LOWopenmed/traces/jsonl.py614 except Exception: # noqa: BLE001 - stream errors may contain PHICODE
LOWopenmed/traces/fidelity.py250 except Exception: # noqa: BLE001 - report inputs may contain PHICODE
LOWopenmed/traces/fidelity.py524 except Exception: # noqa: BLE001 - trace errors may contain sensitive valuesCODE
LOWopenmed/traces/fidelity.py810 except Exception: # noqa: BLE001 - configuration may contain PHICODE
LOWopenmed/traces/fidelity.py833 except Exception: # noqa: BLE001 - configuration may contain PHICODE
LOWopenmed/traces/fidelity.py848 except Exception: # noqa: BLE001 - configuration may contain PHICODE
LOWopenmed/traces/fidelity.py855 except Exception: # noqa: BLE001 - configuration may contain PHICODE
LOWopenmed/traces/fidelity.py1025 except Exception:CODE
LOWopenmed/traces/fidelity.py1036 except Exception:CODE
LOWopenmed/traces/fidelity.py1047 except Exception:CODE
LOWopenmed/traces/fidelity.py1103 except Exception: # noqa: BLE001 - direct report input may contain PHICODE
LOWopenmed/traces/fidelity.py1121 except Exception: # noqa: BLE001 - trace metadata may contain PHICODE
MEDIUMopenmed/traces/fidelity.py238def __post_init__(self) -> None:CODE
LOW⚡openmed/traces/streaming.py477 except Exception:CODE
LOW⚡openmed/traces/streaming.py487 except Exception:CODE
LOW⚡openmed/traces/streaming.py494 except Exception:CODE
LOW⚡openmed/traces/streaming.py832 except Exception:CODE
LOW⚡openmed/traces/streaming.py838 except Exception:CODE
LOW⚡openmed/traces/streaming.py846 except Exception:CODE
LOW⚡openmed/traces/streaming.py854 except Exception:CODE
LOWopenmed/traces/streaming.py577 except Exception:CODE
LOWopenmed/traces/streaming.py600 except Exception:CODE
LOWopenmed/traces/streaming.py623 except Exception:CODE
LOWopenmed/traces/streaming.py635 except Exception:CODE
LOWopenmed/traces/streaming.py662 except Exception:CODE
LOWopenmed/traces/streaming.py774 except Exception:CODE
LOWopenmed/traces/parallel.py102 except Exception:CODE
LOWopenmed/traces/parallel.py110 except Exception: # pragma: no cover - hostile exception metaclassCODE
LOWopenmed/traces/parallel.py126 except Exception:CODE
LOWopenmed/traces/parallel.py154 except Exception:CODE
LOWopenmed/traces/parallel.py368 except Exception:CODE
LOWopenmed/traces/parallel.py376 except Exception:CODE
LOWopenmed/traces/parallel.py400 except Exception:CODE
LOWopenmed/traces/parallel.py412 except Exception:CODE
LOWopenmed/traces/parallel.py428 except Exception as exc:CODE
LOWopenmed/traces/parallel.py492 except Exception:CODE
LOWopenmed/traces/parallel.py506 except Exception:CODE
LOWopenmed/traces/parallel.py513 except Exception:CODE
1120 more matches not shown…
Modern Structural Boilerplate1137 hits · 1135 pts
SeverityFileLineSnippetContext
LOWpackaging/standalone_manifest.py899__all__ = [CODE
LOWopenmed/__init__.py266logger = logging.getLogger(__name__)CODE
LOWopenmed/__init__.py859__all__ = [CODE
LOWopenmed/aio.py310__all__ = ["aextract_pii", "adeidentify", "aanalyze_text", "abatch"]CODE
LOWopenmed/traces/audit.py1080__all__ = [CODE
LOWopenmed/traces/discovery.py374__all__ = [CODE
LOWopenmed/traces/transaction.py29__all__ = [CODE
LOWopenmed/traces/__init__.py72__all__ = [CODE
LOWopenmed/traces/jsonl.py51__all__ = [CODE
LOWopenmed/traces/jsonl.py463def _set_path(record: dict[str, Any], path: JsonPath, value: str) -> None:CODE
LOWopenmed/traces/fidelity.py1139__all__ = [CODE
LOWopenmed/traces/streaming.py1106__all__ = [CODE
LOWopenmed/traces/parallel.py689__all__ = [CODE
LOWopenmed/traces/tool_calls.py543__all__ = [CODE
LOWopenmed/traces/schemas/preference.py1002__all__ = [CODE
LOWopenmed/traces/schemas/columnar.py23__all__ = [CODE
LOWopenmed/traces/schemas/registry.py1026__all__ = [CODE
LOWopenmed/traces/schemas/__init__.py21__all__ = [CODE
LOWopenmed/traces/schemas/chat.py965__all__ = [CODE
LOWopenmed/core/safety_sweep.py359__all__ = [CODE
LOWopenmed/core/repro_hash.py589__all__ = [CODE
LOWopenmed/core/document_stream.py38__all__ = [CODE
LOWopenmed/core/labels.py2513__all__ = [CODE
LOWopenmed/core/locale_tag.py9__all__ = [CODE
LOWopenmed/core/quality_gates.py23logger = logging.getLogger(__name__)CODE
LOWopenmed/core/quality_gates.py189def _set_span_valid(entity: Any, valid: bool) -> None:CODE
LOWopenmed/core/key_custody.py1040__all__ = [CODE
LOWopenmed/core/clinical_identifiers.py169__all__ = [CODE
LOWopenmed/core/config.py690def set_config(config: OpenMedConfig) -> None:CODE
LOWopenmed/core/audit.py1355__all__ = [CODE
LOWopenmed/core/export_naming.py573__all__ = [CODE
LOWopenmed/core/lang_id_codemix.py357__all__ = [CODE
LOWopenmed/core/models.py12logger = logging.getLogger(__name__)CODE
LOWopenmed/core/config_provenance.py535__all__ = [CODE
LOWopenmed/core/surrogate_key_provider.py25__all__ = [CODE
LOWopenmed/core/clinical_label_map.py76__all__ = ["CLINICAL_LABEL_MAP_VERSION", "clinical_label", "clinical_label_map"]CODE
LOWopenmed/core/surrogate_vault.py391 def set_epoch_manager(self, epoch_manager: _EpochManager) -> None:CODE
LOWopenmed/core/surrogate_vault.py411 def set_name_matching_metadata(self, metadata: Mapping[str, Any]) -> None:CODE
LOWopenmed/core/surrogate_vault.py1881__all__ = [CODE
LOWopenmed/core/baseline.py320__all__ = [CODE
LOWopenmed/core/model_cache_policy.py31logger = logging.getLogger(__name__)CODE
LOWopenmed/core/model_cache_policy.py1045__all__ = [CODE
LOWopenmed/core/manifest.py594__all__ = [CODE
LOWopenmed/core/thresholds.py580__all__ = [CODE
LOWopenmed/core/locale_formats.py979__all__ = [CODE
LOWopenmed/core/date_shift.py92__all__ = [CODE
LOWopenmed/core/hf_hub.py38__all__ = [CODE
LOWopenmed/core/hf_hub.py649 def update_transfer(self, byte_count: int | float | None = 1) -> None:CODE
LOW⚡openmed/core/hf_hub.py668 def set_description(self, *args: Any, **kwargs: Any) -> None:CODE
LOW⚡openmed/core/hf_hub.py671 def set_postfix_str(self, *args: Any, **kwargs: Any) -> None:CODE
LOW⚡openmed/core/hf_hub.py674 def set_transfer_postfix_str(self, *args: Any, **kwargs: Any) -> None:CODE
LOWopenmed/core/local_identifiers.py200__all__ = [CODE
LOWopenmed/core/budget.py51__all__ = [CODE
LOWopenmed/core/review_workflow.py69__all__ = [CODE
LOWopenmed/core/language_pack_catalog.py734__all__ = [CODE
LOWopenmed/core/language_pack_coherence.py330__all__ = [CODE
LOWopenmed/core/arbitration.py491__all__ = [CODE
LOWopenmed/core/policy.py962__all__ = [CODE
LOWopenmed/core/__init__.py206__all__ = [CODE
LOW⚡openmed/core/telemetry.py232 def _set_attributes(self, attributes: Mapping[str, Any]) -> None:CODE
1077 more matches not shown…
Deep Nesting870 hits · 814 pts
SeverityFileLineSnippetContext
LOWopenmed/__init__.py278CODE
LOWopenmed/__init__.py405CODE
LOWopenmed/__init__.py717CODE
LOWopenmed/traces/audit.py682CODE
LOWopenmed/traces/audit.py983CODE
LOWopenmed/traces/discovery.py290CODE
LOWopenmed/traces/discovery.py335CODE
LOWopenmed/traces/jsonl.py413CODE
LOWopenmed/traces/jsonl.py550CODE
LOWopenmed/traces/fidelity.py800CODE
LOWopenmed/traces/fidelity.py1077CODE
LOWopenmed/traces/streaming.py1059CODE
LOWopenmed/traces/streaming.py462CODE
LOWopenmed/traces/parallel.py478CODE
LOWopenmed/traces/parallel.py559CODE
LOWopenmed/traces/tool_calls.py237CODE
LOWopenmed/traces/tool_calls.py480CODE
LOWopenmed/traces/schemas/preference.py437CODE
LOWopenmed/traces/schemas/preference.py588CODE
LOWopenmed/traces/schemas/columnar.py248CODE
LOWopenmed/traces/schemas/registry.py137CODE
LOWopenmed/traces/schemas/registry.py157CODE
LOWopenmed/traces/schemas/chat.py213CODE
LOWopenmed/core/safety_sweep.py141CODE
LOWopenmed/core/result_cache.py62CODE
LOWopenmed/core/document_stream.py433CODE
LOWopenmed/core/key_custody.py462CODE
LOWopenmed/core/key_custody.py772CODE
LOWopenmed/core/key_custody.py890CODE
LOWopenmed/core/key_custody.py995CODE
LOWopenmed/core/config.py754CODE
LOWopenmed/core/config.py561CODE
LOWopenmed/core/audit.py208CODE
LOWopenmed/core/audit.py647CODE
LOWopenmed/core/export_naming.py433CODE
LOWopenmed/core/surrogate_vault.py1107CODE
LOWopenmed/core/model_cache_policy.py279CODE
LOWopenmed/core/model_cache_policy.py583CODE
LOWopenmed/core/model_cache_policy.py717CODE
LOWopenmed/core/policy.py572CODE
LOWopenmed/core/model_integrity.py327CODE
LOWopenmed/core/text_normalize.py155CODE
LOWopenmed/core/catalog_coherence.py22CODE
LOWopenmed/core/pii_entity_merger.py648CODE
LOWopenmed/core/pii_entity_merger.py764CODE
LOWopenmed/core/pii_entity_merger.py828CODE
LOWopenmed/core/custom_recognizer.py820CODE
LOWopenmed/core/script_detect.py815CODE
LOWopenmed/core/script_detect.py875CODE
LOWopenmed/core/registry_service.py102CODE
LOWopenmed/core/registry_service.py538CODE
LOWopenmed/core/registry_service.py580CODE
LOWopenmed/core/policy_lint.py252CODE
LOWopenmed/core/registry_slots.py114CODE
LOWopenmed/core/registry_slots.py229CODE
LOWopenmed/core/registry_slots.py625CODE
LOWopenmed/core/registry_slots.py735CODE
LOWopenmed/core/deletion_verify.py656CODE
LOWopenmed/core/deletion_verify.py689CODE
LOWopenmed/core/deletion_verify.py837CODE
810 more matches not shown…
Fake / Example Data688 hits · 786 pts
SeverityFileLineSnippetContext
LOWREADME.hi.md470[('NAME', 'John Doe'), ('DATE', '01/15/1970'), ('SSN', '123-45-6789')]CODE
LOWCHANGELOG.md3285- **`method="replace"` outputs no longer come from the prior hardcoded list** (`["Jane Smith", "John Doe", "Alex JohnsonCODE
LOWCHANGELOG.md3534 - Expanded locale fake-data dictionaries with `FIRST_NAME`, `LAST_NAME`, and `ZIPCODE` values across supported languagCODE
LOWREADME.md476[('NAME', 'John Doe'), ('DATE', '01/15/1970'), ('SSN', '123-45-6789')]CODE
LOWREADME.zh-CN.md468[('NAME', 'John Doe'), ('DATE', '01/15/1970'), ('SSN', '123-45-6789')]CODE
LOWopenmed/core/secrets.py283 "placeholder",CODE
LOW⚡openmed/core/pii_i18n.py12196 "NAME": ["Jane Smith", "John Doe", "Alex Johnson", "Sam Taylor"],CODE
LOW⚡openmed/core/pii_i18n.py12199 "EMAIL": ["patient@example.com", "contact@example.org"],CODE
LOW⚡openmed/core/pii_i18n.py12200 "PHONE": ["555-0123", "555-0456", "555-0789"],CODE
LOW⚡openmed/core/pii_i18n.py12202 "STREET_ADDRESS": ["123 Main St", "456 Oak Ave"],CODE
LOWopenmed/core/pii_i18n.py12184 "EMAIL": ["pasiënt@example.co.za", "kontak@example.org"],CODE
LOWopenmed/core/pii_i18n.py12309 "EMAIL": ["pacjent@example.pl", "kontakt@example.org"],CODE
LOWopenmed/core/pii_i18n.py12339 "EMAIL": ["patient@example.in", "sampark@example.org"],CODE
LOWopenmed/core/pii_i18n.py12376 "EMAIL": ["patient@example.in", "sampark@example.org"],CODE
LOWopenmed/core/pii_i18n.py12403 "EMAIL": ["takami@example.et", "contact@example.org"],CODE
LOWopenmed/core/pii_i18n.py12433 "EMAIL": ["patient@example.eg", "contact@example.org"],CODE
LOWopenmed/core/pii_i18n.py12455 "EMAIL": ["bimar@example.ir", "tamas@example.org"],CODE
LOWopenmed/core/pii_i18n.py12478 "EMAIL": ["mareez@example.in", "rabta@example.org"],CODE
LOWopenmed/core/pii_i18n.py12511 "EMAIL": ["patient@example.co.il", "contact@example.org"],CODE
LOWopenmed/core/pii_i18n.py12548 "EMAIL": ["patient@example.jp", "renraku@example.org"],CODE
LOWopenmed/core/pii_i18n.py12625 "EMAIL": ["pasyente@example.ph", "kontak@example.org"],CODE
LOWopenmed/core/pii_i18n.py12673 "EMAIL": ["isiguli@example.co.za", "xhumana@example.org"],CODE
LOWopenmed/core/pii_i18n.py12693 "EMAIL": ["isigulane@example.co.za", "qhagamshelana@example.org"],CODE
LOWopenmed/core/pii_i18n.py12708 "EMAIL": ["patient@example.se", "kontakt@example.org"],CODE
LOWopenmed/core/pii_i18n.py12723 "EMAIL": ["patient@example.dk", "kontakt@example.org"],CODE
LOWopenmed/core/pii_i18n.py12738 "EMAIL": ["pasient@example.no", "kontakt@example.org"],CODE
LOWopenmed/core/pii_i18n.py12758 "EMAIL": ["benhnhan@example.vn", "lienhe@example.org"],CODE
LOWopenmed/core/pii_i18n.py12781 "EMAIL": ["patient@example.th", "contact@example.org"],CODE
LOWopenmed/core/pii_i18n.py12799 "EMAIL": ["pacients@example.lv", "kontakts@example.org"],CODE
LOWopenmed/core/pii_i18n.py12819 "EMAIL": ["pacient@example.sk", "kontakt@example.org"],CODE
LOWopenmed/core/pii_i18n.py12885 "EMAIL": ["pacient@example.ru", "kontakt@example.org"],CODE
LOWopenmed/core/pii_i18n.py12900 "EMAIL": ["potilas@example.fi", "yhteys@example.org"],CODE
LOWopenmed/core/pii_i18n.py12915 "EMAIL": ["patsient@example.bg", "kontakt@example.org"],CODE
LOWopenmed/core/pii_i18n.py12930 "EMAIL": ["pacijent@example.hr", "kontakt@example.org"],CODE
LOWopenmed/core/pii_i18n.py12945 "EMAIL": ["pacijent@example.rs", "kontakt@example.org"],CODE
LOWopenmed/core/pii_i18n.py12960 "EMAIL": ["beteg@example.hu", "kapcsolat@example.org"],CODE
LOWopenmed/core/pii_i18n.py12975 "EMAIL": ["patsient@example.ee", "kontakt@example.org"],CODE
LOWopenmed/core/pii_i18n.py12990 "EMAIL": ["patsiient@example.ua", "kontakt@example.org"],CODE
LOWopenmed/core/pii_i18n.py13005 "EMAIL": ["pacient@example.cz", "kontakt@example.org"],CODE
LOWopenmed/core/pii_i18n.py13025 "EMAIL": ["asthenis@example.gr", "epikoinonia@example.org"],CODE
LOWopenmed/core/pii_i18n.py13045 "EMAIL": ["majiyyaci@example.ng", "tuntuɓa@example.org"],CODE
LOWopenmed/core/pii_i18n.py13065 "EMAIL": ["onyeoria@example.ng", "uloogwu@example.org"],CODE
LOWopenmed/core/pii_i18n.py13085 "EMAIL": ["alaisan@example.ng", "iwosan@example.org"],CODE
LOWopenmed/core/pii_i18n.py13100 "EMAIL": ["patient@example.cn", "contact@example.org"],CODE
LOWopenmed/core/pii.py3092# Canonical labels that don't have a fake-data key fall through to theCOMMENT
LOW⚡openmed/core/pii.py3146 fake_data = LANGUAGE_FAKE_DATA.get(lang, LANGUAGE_FAKE_DATA["en"])CODE
LOW⚡openmed/core/pii.py3149 if key in fake_data:CODE
LOW⚡openmed/core/pii.py3150 return random.choice(fake_data[key])CODE
LOWopenmed/core/pii.py18 ... {"[NAME]": "Casey Example", "[PHONE]": "555-0100"},STRING
LOW⚡openmed/core/anonymizer/format_preserve.py108def preserve_email_pattern(original: str, fake_email: str) -> str:CODE
LOW⚡openmed/core/anonymizer/format_preserve.py109 """Use ``fake_email``'s local part with ``original``'s domain.STRING
LOW⚡openmed/core/anonymizer/format_preserve.py113 the local part. Falls back to ``fake_email`` verbatim if either sideSTRING
LOW⚡openmed/core/anonymizer/format_preserve.py116 if "@" not in original or "@" not in fake_email:CODE
LOW⚡openmed/core/anonymizer/format_preserve.py117 return fake_emailCODE
LOW⚡openmed/core/anonymizer/format_preserve.py118 fake_local = fake_email.split("@", 1)[0]CODE
LOWopenmed/core/anonymizer/engine.py75 consistency (so "John Doe" appearing twice gets one surrogate).STRING
LOWopenmed/processing/display.py361 >>> "PERSON" in html and "John Doe" in htmlSTRING
LOWopenmed/interop/retrieval/redacted_index.py55 "placeholder": self.placeholder,CODE
LOWopenmed/interop/retrieval/redacted_index.py67 "placeholder",CODE
LOWopenmed/interop/retrieval/redacted_index.py75 placeholder=str(payload["placeholder"]),CODE
628 more matches not shown…
Cross-File Repetition108 hits · 540 pts
SeverityFileLineSnippetContext
HIGHopenmed/traces/transaction.py0copy a string into a base ``str`` without calling subclass hooks.STRING
HIGHopenmed/traces/fidelity.py0copy a string into a base ``str`` without calling subclass hooks.STRING
HIGHopenmed/traces/parallel.py0copy a string into a base ``str`` without calling subclass hooks.STRING
HIGHopenmed/traces/schemas/preference.py0copy a string into a base ``str`` without calling subclass hooks.STRING
HIGHopenmed/traces/schemas/columnar.py0copy a string into a base ``str`` without calling subclass hooks.STRING
HIGHopenmed/traces/schemas/registry.py0copy a string into a base ``str`` without calling subclass hooks.STRING
HIGHopenmed/traces/schemas/chat.py0copy a string into a base ``str`` without calling subclass hooks.STRING
HIGHscripts/skills/build_packs.py0copy a string into a base ``str`` without calling subclass hooks.STRING
HIGHopenmed/processing/advanced_ner.py0return the character-offset identity for this span.STRING
HIGHopenmed/clinical/decision_support.py0return the character-offset identity for this span.STRING
HIGHopenmed/clinical/relations/candidate.py0return the character-offset identity for this span.STRING
HIGHopenmed/training/synthetic/spdx_identifier.py0return a deterministic dictionary in fixed field order.STRING
HIGHopenmed/multimodal/frame_sampling_manifest.py0return a deterministic dictionary in fixed field order.STRING
HIGHopenmed/multimodal/audio_format_summary.py0return a deterministic dictionary in fixed field order.STRING
HIGHopenmed/multimodal/processing_summary.py0return a deterministic dictionary in fixed field order.STRING
HIGHopenmed/multimodal/audio_resample_plan.py0return a deterministic dictionary in fixed field order.STRING
HIGHopenmed/multimodal/image_geometry.py0return a deterministic dictionary in fixed field order.STRING
HIGHopenmed/training/synthetic/spdx_identifier.py0serialize with deterministic key order and no insignificant space.STRING
HIGHopenmed/multimodal/frame_sampling_manifest.py0serialize with deterministic key order and no insignificant space.STRING
HIGHopenmed/multimodal/audio_format_summary.py0serialize with deterministic key order and no insignificant space.STRING
HIGHopenmed/multimodal/processing_summary.py0serialize with deterministic key order and no insignificant space.STRING
HIGHopenmed/multimodal/audio_resample_plan.py0serialize with deterministic key order and no insignificant space.STRING
HIGHopenmed/multimodal/abstention.py0serialize with deterministic key order and no insignificant space.STRING
HIGHopenmed/multimodal/preflight.py0serialize with deterministic key order and no insignificant space.STRING
HIGHopenmed/multimodal/image_geometry.py0serialize with deterministic key order and no insignificant space.STRING
HIGHopenmed/interop/elasticsearch.py0internal marker for a rejected untrusted input boundary.STRING
HIGHopenmed/interop/opensearch.py0internal marker for a rejected untrusted input boundary.STRING
HIGHopenmed/interop/beam.py0internal marker for a rejected untrusted input boundary.STRING
HIGHopenmed/interop/llamaindex.py0runtime options forwarded to openmed's de-identification engine.STRING
HIGHopenmed/interop/langchain.py0runtime options forwarded to openmed's de-identification engine.STRING
HIGHopenmed/interop/duckdb_udf.py0runtime options forwarded to openmed's de-identification engine.STRING
HIGHopenmed/interop/llamaindex.py0return keyword arguments for ``openmed.core.pii.deidentify``.STRING
HIGHopenmed/interop/langchain.py0return keyword arguments for ``openmed.core.pii.deidentify``.STRING
HIGHopenmed/interop/duckdb_udf.py0return keyword arguments for ``openmed.core.pii.deidentify``.STRING
HIGHopenmed/interop/bridges/pipeline_migration.py0return a deterministic json-compatible representation.STRING
HIGHopenmed/structured/store/protocols.py0return a deterministic json-compatible representation.STRING
HIGHopenmed/clinical/abbreviation.py0return a deterministic json-compatible representation.STRING
HIGHopenmed/clinical/grounding/valueset.py0return a deterministic json-compatible representation.STRING
HIGHopenmed/eval/reviewer_disagreement.py0return a deterministic json-compatible representation.STRING
HIGHopenmed/eval/annotation/interchange.py0return a deterministic json-compatible representation.STRING
HIGHopenmed/agent/capability_validity.py0raised when envelope metadata fails closed validation. args: code: stable machine-readable validation code. field_name: STRING
HIGHopenmed/agent/event_sequence.py0raised when envelope metadata fails closed validation. args: code: stable machine-readable validation code. field_name: STRING
HIGHopenmed/agent/action_graph.py0raised when envelope metadata fails closed validation. args: code: stable machine-readable validation code. field_name: STRING
HIGHopenmed/agent/errors.py0raised when envelope metadata fails closed validation. args: code: stable machine-readable validation code. field_name: STRING
HIGHopenmed/agent/capability_validity.py0return a deterministic dictionary in declared field order.STRING
HIGHopenmed/agent/event_sequence.py0return a deterministic dictionary in declared field order.STRING
HIGHopenmed/agent/action_graph.py0return a deterministic dictionary in declared field order.STRING
HIGHopenmed/agent/errors.py0return a deterministic dictionary in declared field order.STRING
HIGHopenmed/multimodal/asr_audio_profile.py0return a deterministic dictionary in declared field order.STRING
HIGHopenmed/multimodal/audio_windows.py0return a deterministic dictionary in declared field order.STRING
HIGHopenmed/multimodal/page_windows.py0return a deterministic dictionary in declared field order.STRING
HIGHopenmed/agent/capability_validity.py0return compact json with sorted keys for byte-identical payloads.STRING
HIGHopenmed/agent/event_sequence.py0return compact json with sorted keys for byte-identical payloads.STRING
HIGHopenmed/agent/action_graph.py0return compact json with sorted keys for byte-identical payloads.STRING
HIGHopenmed/agent/event_attributes.py0return compact json with sorted keys for byte-identical payloads.STRING
HIGHopenmed/agent/outcomes.py0return compact json with sorted keys for byte-identical payloads.STRING
HIGHopenmed/agent/errors.py0return compact json with sorted keys for byte-identical payloads.STRING
HIGHopenmed/agent/schema_compatibility.py0return compact json with sorted keys for byte-identical payloads.STRING
HIGHopenmed/multimodal/asr_audio_profile.py0return compact json with sorted keys for byte-identical payloads.STRING
HIGHopenmed/multimodal/audio_windows.py0return compact json with sorted keys for byte-identical payloads.STRING
48 more matches not shown…
AI Structural Patterns231 hits · 206 pts
SeverityFileLineSnippetContext
LOWopenmed/__init__.py405CODE
LOWopenmed/aio.py60CODE
LOWopenmed/aio.py111CODE
LOWopenmed/aio.py186CODE
LOWopenmed/traces/audit.py983CODE
LOWopenmed/traces/transaction.py131CODE
LOWopenmed/traces/streaming.py672CODE
LOWopenmed/traces/streaming.py722CODE
LOWopenmed/traces/streaming.py778CODE
LOWopenmed/traces/streaming.py376CODE
LOWopenmed/traces/schemas/preference.py437CODE
LOWopenmed/core/document_stream.py367CODE
LOWopenmed/core/export_naming.py433CODE
LOWopenmed/core/config_provenance.py201CODE
LOWopenmed/core/manifest.py136CODE
LOWopenmed/core/hf_hub.py159CODE
LOWopenmed/core/arbitration.py222CODE
LOWopenmed/core/pipeline.py257CODE
LOWopenmed/core/pipeline.py389CODE
LOWopenmed/core/model_search.py53CODE
LOWopenmed/core/hf_publish.py226CODE
LOWopenmed/core/registry_compatibility.py369CODE
LOWopenmed/core/streaming.py56CODE
LOWopenmed/core/no_phi_telemetry.py429CODE
LOWopenmed/core/pii.py1115CODE
LOWopenmed/core/pii.py1332CODE
LOWopenmed/core/pii.py2082CODE
LOWopenmed/core/pii.py2397CODE
LOWopenmed/core/pii.py2565CODE
LOWopenmed/core/cascade.py54CODE
LOWopenmed/core/anonymizer/engine.py111CODE
LOWopenmed/ner/infer.py124CODE
LOWopenmed/onnx/maple_bundle.py75CODE
LOWopenmed/onnx/maple_bundle.py135CODE
LOWopenmed/onnx/convert.py338CODE
LOWopenmed/onnx/convert.py827CODE
LOWopenmed/onnx/tensorrt_export.py306CODE
LOWopenmed/onnx/gguf_int4_export.py273CODE
LOWopenmed/onnx/transformersjs.py74CODE
LOWopenmed/processing/object_storage.py92CODE
LOWopenmed/processing/resume.py298CODE
LOWopenmed/processing/batch.py1746CODE
LOWopenmed/processing/batch.py812CODE
LOWopenmed/processing/batch.py981CODE
LOWopenmed/processing/batch.py1025CODE
LOWopenmed/processing/batch.py1093CODE
LOWopenmed/processing/batch.py1307CODE
LOWopenmed/processing/kafka_connector.py92CODE
LOWopenmed/training/repro_verify.py62CODE
LOWopenmed/training/distill.py356CODE
LOWopenmed/training/distill.py609CODE
LOWopenmed/training/synthetic/translation_augment.py190CODE
LOWopenmed/interop/elasticsearch.py131CODE
LOWopenmed/interop/elasticsearch.py359CODE
LOWopenmed/interop/hl7v2.py537CODE
LOWopenmed/interop/airflow.py134CODE
LOWopenmed/interop/airflow.py556CODE
LOWopenmed/interop/graph_orchestration.py40CODE
LOWopenmed/interop/tools.py496CODE
LOWopenmed/interop/tools.py553CODE
171 more matches not shown…
Cross-Language Confusion33 hits · 180 pts
SeverityFileLineSnippetContext
HIGHopenmed/interop/elasticsearch.py432 Missing, null, and empty selected fields are counted as skipped. ASTRING
HIGHopenmed/interop/llamaindex.py419 "null, mappings, lists, or tuples when redact_metadata=True"CODE
HIGHopenmed/integrations/dataflow_tool_processor.py115 detected-entity counts. Missing, null, empty, and non-string configuredSTRING
HIGHopenmed/structured/synth.py355 "DP synthesis supports only null, boolean, finite numeric, and string cells"CODE
HIGHopenmed/structured/table_io.py289 "CSV/TSV release output supports scalar values only: null, boolean, "CODE
HIGHopenmed/eval/leaderboard.py319 " const matches = !query || normalize(row.dataset.search).includes(query);\n"CODE
HIGHopenmed/eval/leaderboard.py335 " if (query && matchCount > 0 && selected) {\n"CODE
HIGHopenmed/eval/quant_delta.py412 """Return KL(reference || candidate) over fixed-seed token frequencies."""STRING
HIGHopenmed/eval/provenance_ledger.py713 f"{path} must be numeric, boolean, null, nested metadata, or a sha256 digest"CODE
HIGHopenmed/service/journey_workflows.py595 after?: string | null;CODE
HIGHopenmed/service/journey_workflows.py603 code: string | null;CODE
HIGHopenmed/service/journey_workflows.py618 end_cursor: string | null;CODE
HIGHopenmed/service/journey_workflows.py633 code: string | null;CODE
HIGHopenmed/risk/release.py2125 "Missing, null, and empty quasi-identifier states are treated as "CODE
HIGHtests/unit/test_publish_workflow_version.py252 "group": "publish-openmed-${{ inputs.tag || github.ref_name }}",CODE
HIGHtests/unit/test_publish_workflow_version.py307 assert npm_verify["steps"][0]["with"]["ref"] == ("${{ inputs.tag || github.ref }}")CODE
HIGHtests/unit/test_publish_workflow_version.py337 assert npm_publish["steps"][0]["with"]["ref"] == ("${{ inputs.tag || github.ref }}")CODE
HIGHtests/unit/traces/schemas/test_columnar.py128 assert first.equals(second)CODE
HIGHtests/unit/traces/schemas/test_columnar.py207 assert adapted.schema.equals(batch.schema, check_metadata=True)CODE
HIGHtests/unit/release/test_provenance_workflow.py93 assert provenance["with"]["release-tag"] == ("${{ inputs.tag || github.ref_name }}")CODE
HIGHtests/unit/cli/test_quality_profile_cli.py42 '{"required_fields":["condition"],"condition":null}\n',CODE
HIGH⚡tests/unit/multimodal/test_asset_limits.py343 '{"field_name": "pixels", "reason_code": "insufficient_metadata", "limit": 10000000, "observed": null}, 'CODE
HIGH⚡tests/unit/multimodal/test_asset_limits.py344 '{"field_name": "total_pixels", "reason_code": "insufficient_metadata", "limit": 25000000, "observed": null}]'CODE
HIGH⚡tests/unit/multimodal/test_preflight.py133 '{"schema_version":1,"status":"accept","abstention":null,'CODE
HIGH⚡tests/unit/multimodal/test_preflight.py143 '{"schema_version":1,"status":"accept","abstention":null,'CODE
HIGH⚡tests/unit/multimodal/test_preflight.py186 '{"check":"limits","reason_code":"insufficient_metadata","field_name":"pixels","limit":40000000,"observed":null}CODE
HIGH⚡tests/unit/multimodal/test_preflight.py187 '{"check":"limits","reason_code":"insufficient_metadata","field_name":"total_pixels","limit":100000000,"observedCODE
HIGH⚡tests/unit/multimodal/test_preflight.py231 '"manifest":null,"modality":null,"metadata_profile":null,'CODE
HIGH⚡tests/unit/multimodal/test_preflight.py233 '"media_type":null,"digest":null,"findings":['CODE
HIGH⚡tests/unit/multimodal/test_preflight.py234 '{"check":"manifest","reason_code":"malformed_manifest","field_name":null,"limit":null,"observed":null}'CODE
HIGHtests/unit/multimodal/test_preflight.py117 '{"schema_version":1,"status":"accept","abstention":null,'CODE
HIGHtests/unit/service/test_jobs_api.py71 ('{"jobs": {"synthetic": null}}', "invalid job record"),CODE
HIGHskills/build_catalog.py194 "git clone https://github.com/maziyarpanahi/openmed && cd openmed\n"CODE
Dead Code27 hits · 54 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/traces/test_audit.py180CODE
MEDIUMtests/unit/traces/test_audit.py239CODE
MEDIUMtests/unit/traces/test_fidelity.py283CODE
MEDIUMtests/unit/interop/test_spark.py295CODE
MEDIUMtests/unit/interop/fhir/test_smart_custody.py146CODE
MEDIUMtests/unit/interop/fhir/test_smart_refresh.py585CODE
MEDIUMtests/unit/multimodal/test_dicom_sr_provenance.py311CODE
MEDIUMtests/unit/multimodal/test_page_rotation.py215CODE
MEDIUMtests/unit/multimodal/test_layout_columns.py338CODE
MEDIUMtests/unit/structured/test_schema_extract.py385CODE
MEDIUMtests/unit/clinical/test_summary_empty_evidence.py86CODE
MEDIUMtests/unit/clinical/test_citation_boundaries.py74CODE
MEDIUMtests/unit/clinical/test_summary_length_budget.py235CODE
MEDIUMtests/unit/clinical/test_citation_minimality.py98CODE
MEDIUMtests/unit/clinical/test_unit_display_audit.py231CODE
MEDIUMtests/unit/clinical/test_nli_premise_window.py182CODE
MEDIUMtests/unit/clinical/test_citation_ordering.py270CODE
MEDIUMtests/unit/clinical/test_summary_output_normalizer.py157CODE
MEDIUMtests/unit/clinical/test_claim_conflicts.py33CODE
MEDIUMtests/unit/clinical/test_lab_measurements.py272CODE
MEDIUMtests/unit/clinical/test_language_health.py271CODE
MEDIUMtests/unit/clinical/test_family_history_relations.py186CODE
MEDIUMtests/unit/eval/test_relation_audit.py268CODE
MEDIUMtests/unit/eval/test_summary_unsupported_claims.py65CODE
MEDIUMtests/unit/eval/test_citation_support_metrics.py77CODE
MEDIUMtests/unit/eval/test_citation_support_metrics.py151CODE
MEDIUMtests/unit/guard/test_dataset.py200CODE
Modern AI Meta-Vocabulary17 hits · 51 pts
SeverityFileLineSnippetContext
MEDIUMCHANGELOG.md2503- [#1885](https://github.com/maziyarpanahi/openmed/pull/1885) feat: add procedures zero-shot domain and DEVICE canonicalCODE
MEDIUMCHANGELOG.md2554- [#1866](https://github.com/maziyarpanahi/openmed/pull/1866) docs: one-command multi-agent install and quickstart for tCODE
MEDIUMCHANGELOG.md2559 - `7d592dd86b3f` Merge pull request #1866 from maziyarpanahi/feature/skills-multi-agent-readmeCODE
MEDIUMopenmed/core/review_workflow.py384 # Collect every span up front so a context window can mask *other* nearbyCOMMENT
MEDIUMopenmed/core/pii_entity_merger.py622 # Extract context windowCOMMENT
MEDIUMopenmed/mcp/server.py580 # length/size/encoding guardrails as the library and REST entry points.COMMENT
MEDIUM⚡openmed/cli/typer_app.py352 # zero-shot (GLiNER/GLiNER2)COMMENT
MEDIUMopenmed/clinical/relations_lite.py92# keep the scaffold compatible with those model outputs without broadeningCOMMENT
MEDIUMopenmed/clinical/validation/protocol.py27#: validation scaffold measures de-identification quality against user-suppliedCOMMENT
MEDIUMopenmed/clinical/validation/protocol.py77#: Default acceptance thresholds. These are conservative scaffold defaults; aCOMMENT
MEDIUMopenmed/service/schemas.py74 # guardrails. Errors never echo the (possibly PHI) text.COMMENT
MEDIUMtests/run-tests.sh13# Core test suite without slow markers (collect coverage for zero-shot modules)COMMENT
MEDIUMtests/unit/ner/__init__.py1# Unit tests for the zero-shot NER toolkit.COMMENT
MEDIUM⚡tests/unit/cli/test_false_negative_explorer_cli.py165 # Span text and a surrounding-context window are surfaced from the fixture.COMMENT
MEDIUMdocs/cli/openmed-init.md1# Project scaffolding with `openmed init`COMMENT
MEDIUMskills/building-gold-corpus/SKILL.md54## Quick start — scaffold the projectCOMMENT
MEDIUMskills/running-zeroshot-ner/SKILL.md56# 2) Run zero-shot NER with your OWN labels (comma-separated)COMMENT
AI Slop Vocabulary12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMgates/target_leakage.yaml3# Signed floors keyed by (family, tier, format). The ReleaseGate harnessCOMMENT
MEDIUMopenmed/eval/determinism.py55# Public API entrypoints exercised by the harness.COMMENT
MEDIUMopenmed/eval/__init__.py1266 # Determinism regression harness (OM-822).COMMENT
MEDIUMopenmed/eval/suites/multimodal_dicom.py72#: Device tier reported for pixel-space (image) PHI in the harness slices.COMMENT
LOW⚡tests/unit/core/test_anonymizer.py202 # If the original isn't an email, just return the fake.COMMENT
MEDIUM…ts/unit/processing/test_zh_segmentation_conformance.py380# --- Layer A: the harness accepts a conforming backend ---------------------COMMENT
MEDIUMtests/unit/processing/test_zh_segmentation_docs.py951 # The superseded claim that these crash the harness must be gone.COMMENT
MEDIUM⚡tests/unit/eval/test_multimodal_dicom_suite.py270 # Report renders to the harness's Markdown/JSON surfaces.COMMENT
MEDIUMtests/unit/eval/test_determinism_harness.py38# Keep the reference corpus well under the 60s CI budget: the harness is theCOMMENT
MEDIUMtests/unit/service/test_redaction_app.py99 # AnyIO starts TestClient's event loop. That is test-harness plumbing,COMMENT
MEDIUMtests/unit/service/test_ground_route.py189 # Intercept only the request, after the test harness is initialized.COMMENT
MEDIUMtests/fuzz/fuzz_deidentify.py252if __name__ == "__main__": # pragma: no cover - exercised as a local harness.CODE
Over-Commented Block21 hits · 19 pts
SeverityFileLineSnippetContext
LOWinstall-skills.sh1#!/usr/bin/env bashCOMMENT
LOWCHANGELOG.md1621 of UTF-8 BOM-prefixed CSV and TSV schemas so the first column is classifiedCOMMENT
LOWopenmed/core/name_order.py41COMMENT
LOWopenmed/core/pii_i18n.py101# :func:`openmed.core.model_registry.get_default_pii_model` maps this sentinelCOMMENT
LOWopenmed/core/pii.py321 return pd.DataFrame.from_records(records, columns=columns)COMMENT
LOWopenmed/core/anonymizer/providers/clinical_ids.py3641# ---------------------------------------------------------------------------COMMENT
LOWopenmed/core/anonymizer/providers/clinical_ids.py3841COMMENT
LOWopenmed/core/data/clinical_protect_terms.txt1# OpenMed clinical protection terms v2COMMENT
LOWopenmed/structured/hierarchies/functions.py481# --------------------------------------------------------------------------- #COMMENT
LOWopenmed/clinical/experiencer.py101 "neighbour",COMMENT
LOWopenmed/clinical/context.py121# Ported ConText temporal lexicon. Cues are matched case-insensitively and onCOMMENT
LOWopenmed/clinical/normalization/ranker.py41#: Reciprocal-rank-fusion damping constant. The documented default follows theCOMMENT
LOWopenmed/clinical/lexicons/context_cues.py461 token_boundaries=False,COMMENT
LOWopenmed/clinical/data/context_rules.yaml1# OpenMed's starter ConText rule set.COMMENT
LOWjs/openmedkit-flutter/native/openmed_ffi.h1#ifndef OPENMED_FFI_HCOMMENT
LOWjs/openmedkit-flutter/native/openmed_ffi.c1#include "openmed_ffi.h"COMMENT
LOWdocs/profiling.md201COMMENT
LOWdocs/security/pip-audit-ignore.toml1# Time-boxed pip-audit ignores.COMMENT
LOWdocs/clinical/temporal-normalization.md21 spans,COMMENT
LOWswift/OpenMedKit/Sources/OpenMedKit/OpenMedKit.swift1#if canImport(MLX) && canImport(Tokenizers) && !os(watchOS) && !os(visionOS)COMMENT
LOWskills/exporting-bulk-fhir/SKILL.md41# 1) Kickoff (async). Ask for clinical-note-bearing resource types.COMMENT
Magic Placeholder Names2 hits · 12 pts
SeverityFileLineSnippetContext
HIGH⚡tests/unit/core/test_secrets.py139 'OPENMED_API_KEY="your-api-key"; 'CODE
HIGHdocs/security/secret-detection.md45Explicit placeholders such as `<TOKEN>`, `your-api-key`, `replace-me`, andCODE
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippetContext
LOWopenmed/core/models.py748 # Check if it's a registry keyCOMMENT
LOWopenmed/core/models.py753 # Check if it needs org prefixCOMMENT
LOWopenmed/processing/advanced_ner.py911 # Check if same entity type and close proximityCOMMENT
LOW⚡openmed/processing/advanced_ner.py967 # Check if we have token-level data (no aggregation_strategy used)COMMENT
LOWopenmed/processing/outputs.py355 # Check if entities are adjacent and same labelCOMMENT
Verbosity Indicators3 hits · 7 pts
SeverityFileLineSnippetContext
LOW⚡openmed/processing/advanced_ner.py965 # Step 1: Smart grouping if requested and we have token-level outputCOMMENT
LOW⚡openmed/processing/advanced_ner.py987 # Step 2: Advanced filteringCOMMENT
LOW⚡openmed/processing/advanced_ner.py990 # Step 3: Merge adjacent entities if enabledCOMMENT
Structural Annotation Overuse3 hits · 7 pts
SeverityFileLineSnippetContext
LOW⚡openmed/processing/advanced_ner.py965 # Step 1: Smart grouping if requested and we have token-level outputCOMMENT
LOW⚡openmed/processing/advanced_ner.py987 # Step 2: Advanced filteringCOMMENT
LOW⚡openmed/processing/advanced_ner.py990 # Step 3: Merge adjacent entities if enabledCOMMENT
Overly Generic Function Names5 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_profiling.py282 def my_function():CODE
LOWtests/unit/skills/test_bundle_verify.py451 "utils.py": "def helper():\n pass\n",CODE
LOWtests/unit/skills/test_bundle_verify.py469 "utils.py": "def helper():\n pass\n",CODE
LOWtests/unit/service/test_rest_client.py43 def handle_request(self, request: httpx.Request) -> httpx.Response:CODE
LOWscripts/install/smoke_check.py289 def handle_request(self, request):CODE
Self-Referential Comments1 hit · 4 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/unit/test_profiles.py148 # Create a custom profileCOMMENT
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
MEDIUMopenmed/interop/icd11_api.py77 """Raised when the WHO ICD-API cannot provide a valid response."""STRING
MEDIUMskills/build_catalog.py39 r"written by (?:claude|codex|gpt)|as an ai language model)",CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWinstall-skills.sh10# Usage:COMMENT