MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / readability

Function readability

graph-ui/tools/smoke-w13.mjs:627–644  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

625 await mkdir(OUT_DIR, { recursive: true });
626
627 const readability = async (name) => {
628 await closeTooltips(page);
629 const top = await measureReadability(page, READABILITY_EXCLUSIONS);
630 const scrolled = await scrollRegionsToEnd(page, READABILITY_EXCLUSIONS);
631 await page.waitForTimeout(200);
632 const bottom = await measureReadability(page, READABILITY_EXCLUSIONS);
633 await resetScroll(page, READABILITY_EXCLUSIONS);
634 extras.readability.push({
635 name,
636 scrolledRegions: scrolled.length,
637 top: { candidates: top.candidates, overlaps: top.overlaps, clipped: top.clipped },
638 bottom: { candidates: bottom.candidates, overlaps: bottom.overlaps, clipped: bottom.clipped },
639 });
640 report.overlapViolations += top.overlaps.length + bottom.overlaps.length;
641 report.clippingViolations += top.clipped.length + bottom.clipped.length;
642 report.cutWithoutHint += [...top.clipped, ...bottom.clipped]
643 .filter((entry) => entry.kind === 'cut-without-hint').length;
644 };
645
646 // ------------------------------- 5a. Die fuenf Stufen, ein Symbol
647 await openApp(page, origin);

Callers 1

mainFunction · 0.70

Calls 5

closeTooltipsFunction · 0.90
measureReadabilityFunction · 0.90
scrollRegionsToEndFunction · 0.90
resetScrollFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected