A free collection of curated, high-quality resources to take you from Bronze to Platinum and beyond.
This report summarizes scanner evidence for cpinitiative/usaco-guide, a MDX project with 1,874 GitHub stars. SynthScan examined 87,015 lines of code across 622 source files, recording 96 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 1.3 (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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 65 finding(s).
Are imports declared and package/API names verified? 28 finding(s).
Are wrappers, guards, and repeated structures necessary? 33 finding(s).
Which changes need focused human review? 96 finding(s).
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.
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.
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.
The scanner identified 96 distinct pattern matches across 7 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/index-content.ts | 760 | async function generateUsacoDivisionsJson( | CODE |
| LOW | src/models/problem.ts | 263 | export function checkInvalidUsacoMetadata(metadata: ProblemMetadata) { | CODE |
| LOW | src/models/problem.ts | 491 | export function autoGenerateSolutionMetadata( | CODE |
| LOW | src/components/SubmitProblemSolutionModal.tsx | 15 | export default function SubmitProblemSolutionModal({ | CODE |
| LOW | …s/markdown/ProblemsList/DivisionList/scripts/update.py | 262 | def collect_existing_unique_ids(root_folder: str) -> set[str]: | CODE |
| LOW | src/components/Groups/ProblemSubmissionPopup.tsx | 148 | export function ProblemSubmissionPopupProvider({ children }) { | CODE |
| LOW | src/components/Groups/ProblemSubmissionPopup.tsx | 168 | export function useProblemSubmissionPopupAction() { | CODE |
| LOW | …ents/Groups/ProblemPage/ProblemSubmissionInterface.tsx | 33 | export default function ProblemSubmissionInterface({ | CODE |
| LOW | src/components/ProblemsPage/contestYears.ts | 23 | export function usacoProblemIdsInYearRange( | CODE |
| LOW | …mponents/MarkdownLayout/ModuleProgressUpdateBanner.tsx | 7 | export default function ModuleProgressUpdateBanner() { | CODE |
| LOW | src/hooks/useProblemSubmissionResult.ts | 4 | export default function useProblemSubmissionResult( | CODE |
| LOW | src/hooks/useUserProblemSolutionActions.ts | 16 | export default function useUserProblemSolutionActions() { | CODE |
| LOW | src/hooks/useUserSolutionsForProblem.tsx | 16 | export default function useUserSolutionsForProblem( | CODE |
| LOW | src/hooks/useModuleNavigation.ts | 50 | export function useModuleNavigationShortcut() { | CODE |
| LOW | src/hooks/useModuleNavigation.ts | 91 | export function useModuleNavigationShortcutLabel() { | CODE |
| LOW | src/hooks/useProblemSuggestionAction.tsx | 5 | export default function useProblemSuggestionAction() { | CODE |
| LOW | src/hooks/groups/useActivePostProblems.tsx | 26 | export function ActivePostProblemsProvider({ | CODE |
| LOW | src/hooks/groups/useUserProblemSubmissions.ts | 15 | export default function useUserProblemSubmissions( | CODE |
| LOW | src/lib/validateData.ts | 4 | export function validateProblemConsistency(problems: ProblemInfo[]): { | CODE |
| LOW | src/lib/validateData.ts | 98 | export function validateSolutionRelationships( | CODE |
| LOW | src/lib/queryContent.ts | 81 | export async function queryAllModuleFrontmatter(): Promise< | CODE |
| LOW | src/lib/queryContent.ts | 174 | export async function queryProblemDataByDivision( | CODE |
| LOW | src/lib/queryContent.ts | 199 | export async function queryProblemSlugsForSolutionsIds(): Promise<string[]> { | CODE |
| LOW | src/lib/queryContent.ts | 222 | export async function querySolutionByProblemSlug( | CODE |
| LOW | src/lib/queryContent.ts | 257 | export async function queryModuleIdAndTitleFromProblemBySolutionId( | CODE |
| LOW | src/lib/queryContent.ts | 324 | export async function queryAllModuleIdsAndTitles(): Promise< | CODE |
| LOW | src/lib/queryContent.ts | 354 | export async function queryAllProblemDashboardInfo(): Promise< | CODE |
| LOW | src/lib/queryContent.ts | 457 | export async function queryUsacoDivisionProblems(): Promise<ProblemInfo[]> { | CODE |
| LOW | src/lib/queryContent.ts | 492 | function deserializeMdxContentLight(row: LightMdxContentDbRow): MdxContent { | CODE |
| LOW | src/pages/api/(parsers)/samples/cf.html | 626 | function showEventCatcherUserMessage(json) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py/finalist.py | 1 | CODE | |
| LOW | py/finalist.py | 4 | CODE | |
| LOW | py/finalist.py | 5 | CODE | |
| LOW | py/finalist.py | 6 | CODE | |
| LOW | py/finalist.py | 7 | CODE | |
| LOW | py/check_problem_tags.py | 14 | CODE | |
| LOW | py/change_indents.py | 1 | CODE | |
| LOW | py/check_links.py | 87 | CODE | |
| LOW | py/rename_sources.py | 1 | CODE | |
| LOW | py/split_title.py | 1 | CODE | |
| LOW | py/add_template.py | 1 | CODE | |
| LOW | py/print_tags.py | 1 | CODE | |
| LOW | py/check_solutions.py | 25 | CODE | |
| LOW | py/sol_to_impl.py | 1 | CODE | |
| LOW | py/big_o.py | 1 | CODE | |
| LOW | py/check_mdx.py | 42 | CODE | |
| LOW | py/fix_edi_links.py | 1 | CODE | |
| LOW | py/check_problems_json.py | 42 | CODE | |
| LOW | py/extract/cses.py | 1 | CODE | |
| LOW | py/extract/cses.py | 4 | CODE | |
| LOW | py/extract/cses.py | 5 | CODE | |
| LOW | py/extract/cses.py | 6 | CODE | |
| LOW | py/extract/cses.py | 7 | CODE | |
| LOW | py/extract/extract_cses.py | 17 | CODE | |
| LOW | py/extract/extract.py | 17 | CODE | |
| LOW | …s/markdown/ProblemsList/DivisionList/scripts/update.py | 3 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tsconfig.json | 21 | // src/functions has its own tsconfig and its own npm tree, pinned to | COMMENT |
| LOW | py/split_title.py | 21 | "source: " + tmp[0] + "\n" + "title: " + tmp[1] + "\n" | COMMENT |
| LOW | py/split_title.py | 41 | COMMENT | |
| LOW | py/add_template.py | 21 | # if line.lower().startswith("official editorial: "): | COMMENT |
| LOW | py/check_solutions.py | 41 | COMMENT | |
| LOW | py/problems_mismatched_id.txt | 1 | # Problems whose `uniqueId` disagrees with the `url` it carries. | COMMENT |
| LOW | py/sol_to_impl.py | 41 | new_lines[index] = line + "\n" | COMMENT |
| LOW | py/sol_to_impl.py | 61 | # if found_code and (not found_impl or not found_complexity) | COMMENT |
| LOW | py/sol_to_impl.py | 81 | # ok_start = False | COMMENT |
| LOW | .github/stale.yml | 41 | COMMENT | |
| LOW | .github/linkcheck-skip.txt | 1 | # URLs for linkcheck to ignore. One regular expression per line; lines | COMMENT |
| LOW | .github/linkcheck-skip.txt | 21 | # The entries below only matter if -e (external links) is turned on, which it | COMMENT |
| LOW | .github/dependabot.yml | 1 | # Dependabot configuration. | COMMENT |
| LOW | .github/workflows/problem-tags.yml | 1 | name: Problem Tags | COMMENT |
| LOW | src/components/markdown/CodeBlock/CodeBlock.tsx | 301 | // no styling, just a regular pre tag | COMMENT |
| LOW | src/components/markdown/PGS/gen_PGS.py | 41 | bad = True | COMMENT |
| LOW | …ents/Groups/ProblemPage/ProblemSubmissionInterface.tsx | 21 | // &::-webkit-outer-spin-button, | COMMENT |
| LOW | src/components/Confetti/Confetti.tsx | 61 | COMMENT | |
| LOW | src/components/Confetti/Confetti.tsx | 81 | // Range: 10 = very slow, 10,000 = very fast. | COMMENT |
| LOW | src/components/Confetti/Confetti.tsx | 161 | // particle from within the range. | COMMENT |
| LOW | src/components/Confetti/Particles.tsx | 21 | // An array of shapes, used when generating particles | COMMENT |
| LOW | src/components/Confetti/Particles.tsx | 101 | const birth = Date.now() + random(0, this.props.emitDuration); | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py/change_indents.py | 32 | CODE | |
| LOW | py/check_links.py | 168 | CODE | |
| LOW | py/check_links.py | 204 | CODE | |
| LOW | py/format_code.py | 110 | CODE | |
| LOW | py/check_solutions.py | 135 | CODE | |
| LOW | py/check_solutions.py | 264 | CODE | |
| LOW | py/check_problems_json.py | 217 | CODE | |
| LOW | …s/markdown/ProblemsList/DivisionList/scripts/update.py | 24 | CODE | |
| LOW | …s/markdown/ProblemsList/DivisionList/scripts/update.py | 86 | CODE | |
| LOW | …s/markdown/ProblemsList/DivisionList/scripts/update.py | 169 | CODE | |
| LOW | …s/markdown/ProblemsList/DivisionList/scripts/update.py | 262 | CODE | |
| LOW | …s/markdown/ProblemsList/DivisionList/scripts/update.py | 290 | CODE | |
| LOW | src/components/markdown/PGS/gen_PGS.py | 6 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | py/format_code.py | 47 | except black.report.NothingChanged: | CODE |
| HIGH | py/format_code.py | 66 | except OSError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scripts/check-code-snippets.ts | 70 | print(f'{path}:{err.lineno}:{err.offset}: {err.msg}', file=sys.stderr) | CODE |
| HIGH | scripts/check-code-snippets.ts | 72 | print(' ' + err.text.rstrip(), file=sys.stderr) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py/check_links.py | 299 | except Exception: | CODE |