Repository Analysis

zumerlab/snapdom

High-performance engine for capturing, modifying, and converting DOM elements into any format.

5.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of zumerlab/snapdom, a JavaScript project with 7,934 GitHub stars. SynthScan v2.0 examined 36,663 lines of code across 186 source files, recording 114 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 5.9 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

5.9
Adjusted Score
5.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
7.9K
Stars
JavaScript
Language
36.7K
Lines of Code
186
Files
114
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 0MEDIUM 61LOW 53

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators60 hits · 159 pts
SeverityFileLineSnippetContext
MEDIUM__tests__/module.fonts.more.more.test.js248// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/module.fonts.more.more.test.js251// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js619// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js621// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js639 // ── #277 ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js639 // ── #277 ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js676 // ── #365 ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js676 // ── #365 ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js706 // ── NEW-7 ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js728 // ── #315 ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js728 // ── #315 ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js751// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js753// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js821// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js823// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js859// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js861// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js917// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js919// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/snapdom.benchmark.js144// ── Image-heavy scenario (rasterized PNG) ───────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js545// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js546// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js548// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js30// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js32// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js57// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js59// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js124// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js126// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js147// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js149// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js198// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js200// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js216// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js218// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js243// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js245// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js277// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js279// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js309// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js311// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js339// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js341// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js365// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js369// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js389// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js391// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js410// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js412// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js452// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js454// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js477// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js479// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js496// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js499// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js585// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js588// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM.github/scripts/classify-issues.js18// ─── Classification rules ────────────────────────────────────────────────────COMMENT
MEDIUM.github/scripts/classify-issues.js96// ─── GitHub API helpers ───────────────────────────────────────────────────────COMMENT
MEDIUM.github/scripts/classify-issues.js147// ─── Main ─────────────────────────────────────────────────────────────────────COMMENT
Fake / Example Data28 hits · 28 pts
SeverityFileLineSnippetContext
LOWFEATURES_CN.md159- `data-capture="placeholder"` + `data-placeholder-text` — 用占位框替代该节点。CODE
LOWFEATURES.md159- `data-capture="placeholder"` + `data-placeholder-text` — render a placeholder box instead of the node.CODE
LOWdocs/plugins.html1207 const COLLECTED_ATTRS = ['role', 'aria-label', 'aria-expanded', 'aria-checked', 'aria-disabled', 'alt', 'href', 'pCODE
LOWdocs/index.html1099 <input id="name" type="text" placeholder="John Doe" value="Ada Lovelace" />CODE
LOW__tests__/snapdom.complex.benchmark.js77 text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'CODE
LOW__tests__/snapdom.complex.benchmark.js77 text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'CODE
LOW__tests__/snapdom.precache.perf.test.js52 text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'CODE
LOW__tests__/snapdom.precache.perf.test.js52 text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'CODE
LOW__tests__/snapdom.attributes.test.js30 it('should replace elements with data-capture="placeholder" and show placeholder text', async () => {CODE
LOW__tests__/snapdom.attributes.test.js32 placeholder.setAttribute('data-capture', 'placeholder')CODE
LOW__tests__/snapdom.benchmark.js95 text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';CODE
LOW__tests__/snapdom.benchmark.js95 text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';CODE
LOW__tests__/core.clone.test.js65 it('deepClone handles data-capture="placeholder"', async () => {CODE
LOW__tests__/core.clone.test.js67 el.setAttribute('data-capture', 'placeholder')CODE
LOW__tests__/module.lineClamp.test.js46 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore CODE
LOW__tests__/module.lineClamp.test.js46 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore CODE
LOW__tests__/module.lineClamp.test.js91 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore CODE
LOW__tests__/module.lineClamp.test.js91 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore CODE
LOW__tests__/module.lineClamp.test.js108 div.textContent = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor.'CODE
LOW__tests__/module.lineClamp.test.js108 div.textContent = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor.'CODE
LOW__tests__/module.lineClamp.test.js119 div.textContent = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor.'CODE
LOW__tests__/module.lineClamp.test.js119 div.textContent = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor.'CODE
LOW__tests__/module.lineClamp.test.js139 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt.'CODE
LOW__tests__/module.lineClamp.test.js139 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt.'CODE
LOW__tests__/module.lineClamp.test.js160 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore.CODE
LOW__tests__/module.lineClamp.test.js160 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore.CODE
LOWpackages/plugins/agent-map.js328 for (const name of ['href', 'type', 'name', 'placeholder', 'alt', 'title', 'role', 'aria-label']) {CODE
LOWsrc/core/clone.js151 if (node.getAttribute('data-capture') === 'placeholder') {CODE
Hyper-Verbose Identifiers20 hits · 20 pts
SeverityFileLineSnippetContext
LOWsrc/exporters/toCanvas.js137function rewriteSvgBoxShadowToDropShadow(svgText) {CODE
LOWsrc/exporters/toCanvas.js148function maybeConvertBoxShadowForSafari(url) {CODE
LOWsrc/utils/transforms.helpers.js399export function hasBBoxAffectingTransform(el) {CODE
LOWsrc/utils/image.js15export async function inlineSingleBackgroundEntry(entry, options = {}) {CODE
LOWsrc/utils/clone.helpers.js186export function collectCustomPropsFromCSS(cssText) {CODE
LOWsrc/utils/clone.helpers.js255export async function getAccessibleIframeDocument(iframe, attempts = 3) {CODE
LOWsrc/utils/clone.helpers.js492export function createCheckboxRadioReplacement(node) {CODE
LOWsrc/utils/capture.helpers.js95export function neutralizeRootMarginCollapse(originalEl, cloneRoot) {CODE
LOWsrc/utils/capture.helpers.js144export function sanitizeAttributesForXHTML(root, opts = {}) {CODE
LOWsrc/utils/capture.helpers.js347function contributesToParentHeight(el) {CODE
LOWsrc/utils/capture.helpers.js430function collectScrollbarRulesFromRules(rules, seen = new Set()) {CODE
LOWsrc/modules/pseudo.js302function deriveCounterCtxForPseudo(node, pseudoStyle, baseCtx) {CODE
LOWsrc/modules/pseudo.js377function resolvePseudoContentAndIncs(node, pseudo, baseCtx) {CODE
LOWsrc/modules/pictureResolver.js26export function quickProbeMayNeedPictureResolver(root, resolveLazySrc) {CODE
LOWsrc/modules/pictureResolver.js109export async function runPictureResolverBeforeClone(root, options = {}) {CODE
LOWsrc/modules/pictureResolver.js228 return async function undoPictureResolverMutations() {CODE
LOWsrc/modules/svgDefs.js13export function inlineExternalDefsAndSymbols(element, lookupRoot) {CODE
LOWsrc/modules/styles.js40function snapshotComputedStyleFull(style, options = {}) {CODE
LOWsrc/modules/styles.js226function normalizeInlineStyleToComputed(source, clone, computed) {CODE
LOWsrc/modules/compress.js158export async function compressClonedBackgrounds(clone, options) {CODE
Over-Commented Block5 hits · 5 pts
SeverityFileLineSnippetContext
LOW__tests__/visual.demos.test.js1// Visual regression suite for snapdom demos.COMMENT
LOWpackages/plugin-template/index.js21 // // Runs before anything happens. ctx.element is the original DOM node.COMMENT
LOWpackages/plugin-template/index.js41 // beforeExport(ctx) {COMMENT
LOWsrc/utils/css.js141 r = NO_PAINT_EXACT.has(p) || NO_PAINT_PREFIX.test(p) || NO_PAINT_TOKEN.test(p)COMMENT
LOWsrc/api/preCache.js101 .then(() => inlineSingleBackgroundEntry(entry, { ...options, useProxy }))COMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/modules/snapFetch.js270 // Final URL (with robust proxying) & credentialsCOMMENT