AI Slop Code Risk Monitor

MIT-LCP/mimic-code

SlopCodeMonitor badge for MIT-LCP/mimic-code Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

MIMIC Code Repository: Code shared by the research community for the MIMIC family of databases

1.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for MIT-LCP/mimic-code, a Jupyter Notebook project with 3,428 GitHub stars. SynthScan examined 110,537 lines of code across 787 source files, recording 154 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 1.6 (Low 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.

1.6
Adjusted Signal
1.6
Raw Pattern Score
100%
Time Factor
2026-09-01
Last Push
3.4K
Stars
Jupyter Notebook
Language
110.5K
Lines of Code
787
Files
154
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 5.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.8/100 · LOW

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

Agent Over-Engineering Ratio 3.0/100 · LOW

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

PR Review Velocity Impact 8.2/100 · LOW

Which changes need focused human review? 154 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 1MEDIUM 15LOW 138

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 154 distinct pattern matches across 12 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.

Over-Commented Block76 hits · 72 pts
SeverityFileLineSnippetContext
LOWrequirements-lock.txt1#COMMENT
LOWrequirements-lock.txt21iniconfig==2.1.0COMMENT
LOWrequirements-lock.txt41pluggy==1.6.0COMMENT
LOWrequirements-lock.txt61regex==2026.6.28COMMENT
LOWmimic-iv/buildmimic/download_data.sh1#!/bin/bashCOMMENT
LOWmimic-iv/buildmimic/sqlite/import.sh1#!/bin/shCOMMENT
LOWmimic-iv/buildmimic/postgres/build_mimic.sh1#!/bin/bashCOMMENT
LOWmimic-iv/buildmimic/duckdb/build_mimic.sh1#!/bin/bashCOMMENT
LOWmimic-iii/buildmimic/mimic-iii.yaml281 - column:COMMENT
LOWmimic-iii/buildmimic/mimic-iii.yaml301 # -- CREATE CHARTEVENTS TRIGGERCOMMENT
LOWmimic-iii/buildmimic/mimic-iii.yaml321 # END IF;COMMENT
LOWmimic-iii/buildmimic/sqlite/import.sh1#!/bin/shCOMMENT
LOWmimic-iii/buildmimic/duckdb/import_duckdb.sh1#!/bin/shCOMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.md101 user = "mimicuser",COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.md221 ## # Database: postgres 10.5.0 [mimicuser@localhost:5432/mimic]COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.md281 ## # Source: lazy query [?? x 5]COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.md341 inner_join(mi_admissions, by = c("subject_id", "hadm_id")) %>%COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.md401 right_join(study_admissions, by = c("subject_id", "hadm_id")) %>%COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.md501 )) %>%COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.md561 ## 6 21741 WHITE COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.md581 ## 4 30273 F WHITE COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.md641COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.md681 ## 3 53 UNKNOWN COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.md721 print() -> study_admissionsCOMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.md761 ## ctype en_US.UTF-8 COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.md781 ## knitr 1.20 2018-02-20 [1] CRAN (R 3.4.3)COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html181## [4] "caregivers" "chartevents_1" "chartevents_2" COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html221<pre class="r"><code>tbl_mimic &lt;- function(table) {COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html261## 4 23872 120477COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html281## 4 4338 41010 AMI anterior wal… Acute myocardial infarction of othe…COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html301## 5 6630 571 193189 1 41001 COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html321## 2 28 162569 412 4COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html341## 3 53 155385 41021 1COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html361## &lt;int&gt; &lt;int&gt; &lt;chr&gt; &lt;lgl&gt; COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html381## # Database: postgres 10.5.0 [mimicuser@localhost:5432/mimic]COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html441 0COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html481## 7 12175 BLACK/AFRICAN AMERICANCOMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html501## 7 19393 M WHITE COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html541 TRUE ~ NA_character_COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html581## 6 123 HISPANIC COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html601## 8 158 M WHITE COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html621## 9 160 161672 49 NA 1 41041 TRUE COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html641## date 2019-01-20 COMMENT
LOWmimic-iii/tutorials/dplyr-frontend/intro.html661## pillar 1.3.0 2018-07-14 [1] CRAN (R 3.4.4)COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html141<p>Now, we build a logistic regression, using all the features, to predict the need for an arterial line catheter from pCOMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html161## - hr_first 1 2940.8 3052.8COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html181## - map_first 1 2950.6 3062.6COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html201## - afib_flag 1 2978.1 3044.1COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html221## - sodium_first 1 3000.7 3066.7COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html241## - spo2_first 1 2984.8 3038.8COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html261## - wbc_first 1 3013.2 3067.2COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html281## - gender 1 2985.1 3037.1COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html301## - service_surg 1 3041.1 3093.1COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html321## - respfail_flag 1 2985.5 3035.5COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html341## chf_flag + renal_flag + liver_flag + copd_flag + cad_flag + COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html361## - weight_first 1 2987.6 3035.6COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html381## COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html401## - sodium_first 1 3008.8 3054.8COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html421## - cad_flag 1 2986.0 3030.0COMMENT
LOWmimic-iii/notebooks/aline/aline_propensity_score.html441## aline_flag ~ gender + weight_first + sofa_first + service_surg + COMMENT
16 more matches not shown…
Decorative Section Separators12 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUM⚡mimic-iii/tests/test_postgres_build.py112# --------------------------------------------------STRING
MEDIUM⚡mimic-iii/tests/test_postgres_build.py115# --------------------------------------------------STRING
MEDIUMmimic-iii/tutorials/dplyr-frontend/intro.md753 ## ─ Session info ──────────────────────────────────────────────────────────COMMENT
MEDIUMmimic-iii/tutorials/dplyr-frontend/intro.md765 ## ─ Packages ──────────────────────────────────────────────────────────────COMMENT
MEDIUMmimic-iii/tutorials/dplyr-frontend/intro.html643## ─ Packages ──────────────────────────────────────────────────────────────COMMENT
MEDIUMmimic-iii/tutorials/dplyr-frontend/intro.html631<pre><code>## ─ Session info ──────────────────────────────────────────────────────────CODE
MEDIUMtests/test_transpile.py167# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_transpile.py169# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_transpile.py207# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_transpile.py209# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/mimic_utils/sqlglot_dialects/postgres.py19# -------------------------COMMENT
MEDIUMsrc/mimic_utils/sqlglot_dialects/postgres.py52# ---------------------------COMMENT
Hyper-Verbose Identifiers29 hits · 27 pts
SeverityFileLineSnippetContext
LOWmimic-iv/tests/test_first_day.py4def test_gcs_first_day_calculated_correctly(dataset, project_id):CODE
LOWmimic-iv/tests/test_measurement.py5def test_d_labitems_itemid_for_bg(dataset, project_id):CODE
LOWmimic-iv/tests/test_measurement.py74def test_gcs_score_calculated_correctly(dataset, project_id):STRING
LOWmimic-iv/tests/test_score.py5def test_sofa_one_row_per_hour(dataset, project_id):CODE
LOWmimic-iii/tests/test_postgres_build.py99def test_select_min_subject_id(mimic_con, mimic_schema):CODE
LOW⚡mimic-iii/tests/test_postgres_build.py116def test_itemids_in_inputevents_cv_are_shifted(mimic_con, mimic_schema):STRING
LOWmimic-iii/tests/test_postgres_build.py129def test_itemids_in_inputevents_mv_are_shifted(mimic_con, mimic_schema):STRING
LOWmimic-iii/tests/test_postgres_build.py142def test_itemids_in_outputevents_are_shifted(mimic_con, mimic_schema):STRING
LOWmimic-iii/tests/test_postgres_build.py155def test_itemids_in_inputevents_cv_are_in_range(mimic_con, mimic_schema):STRING
LOWmimic-iii/tests/test_postgres_build.py168def test_itemids_in_outputevents_are_in_range(mimic_con, mimic_schema):STRING
LOWmimic-iii/tests/test_postgres_build.py181def test_itemids_in_chartevents_are_in_range(mimic_con, mimic_schema):STRING
LOWmimic-iii/tests/test_postgres_build.py194def test_itemids_in_procedureevents_mv_are_in_range(mimic_con, mimic_schema):STRING
LOWmimic-iii/tests/test_postgres_build.py207def test_itemids_in_labevents_are_in_range(mimic_con, mimic_schema):STRING
LOWmimic-iii/tests/test_postgres_build.py220def test_itemids_in_microbiologyevents_are_in_range(mimic_con, mimic_schema):STRING
LOWmimic-iii/concepts/diagnosis/README.md31def remove_surrounding_apostrophes(x):CODE
LOWmimic-iii/tutorials/dplyr-frontend/intro.html700function bootstrapStylePandocTables() {CODE
LOW…i/notebooks/rmd_consort_diag/plot_consort_diagram.html135function bootstrapStylePandocTables() {CODE
LOWtests/test_compare_concepts.py8def test_compare_table_treats_same_wall_time_as_equal_across_timezones():CODE
LOWtests/test_compare_concepts.py15def test_compare_table_flags_different_wall_times_even_if_instants_match():CODE
LOWtests/test_sqlfluff.py53def test_concept_passes_sqlfluff(sql_file, lint_results):CODE
LOW⚡tests/test_transpile.py121def test_cases_with_expected_output(name, bq, dialect, expected):CODE
LOW⚡tests/test_transpile.py125def test_unnest_alias_preserved():CODE
LOW⚡tests/test_transpile.py132def test_duckdb_comments_stripped():CODE
LOW⚡tests/test_transpile.py146def test_timestamp_outputs_stay_timezone_naive(bq):CODE
LOW⚡tests/test_transpile.py151def test_unsupported_dialect_raises():CODE
LOW⚡tests/test_transpile.py156def test_schema_map_renames_dataset():CODE
LOWtests/test_transpile.py183def test_concept_transpiles_and_reparses(sql_file, dialect):CODE
LOWtests/test_transpile.py195def test_mimic_iii_concept_transpiles_and_reparses(sql_file, dialect):CODE
LOWtests/test_transpile.py226def test_datetime_diff_semantics_duckdb(end, start, unit, expected):CODE
Unused Imports18 hits · 18 pts
SeverityFileLineSnippetContext
LOWmimic-iv/tests/test_first_day.py1CODE
LOWmimic-iv/tests/conftest.py2CODE
LOWmimic-iv/tests/conftest.py6CODE
LOWmimic-iv/tests/test_all_tables.py1CODE
LOWmimic-iv/tests/test_medication.py1CODE
LOWmimic-iv/tests/test_score.py1CODE
LOWmimic-iv/tests/test_sepsis.py1CODE
LOW…c-iii/buildmimic/aws-athena/mimictoparquet_glue_job.py7CODE
LOW…c-iii/buildmimic/aws-athena/mimictoparquet_glue_job.py8CODE
LOW…c-iii/buildmimic/aws-athena/mimictoparquet_glue_job.py9CODE
LOW…c-iii/buildmimic/aws-athena/mimictoparquet_glue_job.py12CODE
LOW…c-iii/buildmimic/aws-athena/mimictoparquet_glue_job.py13CODE
LOW…c-iii/buildmimic/aws-athena/mimictoparquet_glue_job.py14CODE
LOW…c-iii/buildmimic/aws-athena/mimictoparquet_glue_job.py15CODE
LOW…c-iii/buildmimic/aws-athena/mimictoparquet_glue_job.py16CODE
LOWmimic-iii/buildmimic/oracle/add_oracle_rowdelimiter.py1CODE
LOWmimic-iv-cxr/dcm/export_metadata.py10CODE
LOW.github/scripts/check_sql_syntax.py7CODE
Structural Annotation Overuse7 hits · 10 pts
SeverityFileLineSnippetContext
LOWmimic-iv/buildmimic/sqlite/README.md20## Step 1: Download the CSV or CSV.GZ files.COMMENT
LOWmimic-iv/buildmimic/sqlite/README.md41## Step 2: Generate the SQLite fileCOMMENT
LOWmimic-iii/buildmimic/sqlite/README.md23## Step 1: Download the CSV or CSV.GZ files.COMMENT
LOWmimic-iii/buildmimic/sqlite/README.md28## Step 2: Edit the script if needed.COMMENT
LOWmimic-iii/buildmimic/sqlite/README.md39## Step 3: Generate the SQLite fileCOMMENT
LOWmimic-iii/buildmimic/mysql/README.md6## Step 1: Enable LOAD DATA LOCALCOMMENT
LOWmimic-iii/buildmimic/mysql/README.md15## Step 2: Import CSVCOMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMmimic-iv-cxr/txt/create_section_files.py135 # write distinct files to facilitate modular processingCOMMENT
MEDIUM.github/workflows/mysql.yml24 # Using find keeps this robust to how deeply the files are nested.COMMENT
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/mimic_utils/sqlglot_dialects/duckdb.py31except re.error:CODE
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWmimic-iv/buildmimic/sqlite/import.py60CODE
LOWmimic-iii/buildmimic/oracle/add_oracle_rowdelimiter.py21CODE
LOWmimic-iv-cxr/dcm/export_metadata.py35CODE
LOWmimic-iv-cxr/txt/create_section_files.py31CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWmimic-iv/buildmimic/postgres/build_mimic.sh5# Usage:COMMENT
LOWmimic-iv/buildmimic/duckdb/build_mimic.sh5# Usage:COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMmimic-iii/buildmimic/oracle/build_mimic_oracle.sh9# Create the tablesCOMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/mimic_utils/transpile.py16logger = logging.getLogger(__name__)CODE
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/mimic_utils/compare_concepts.py195 except Exception as e: # noqa: BLE001 - report and continueCODE