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

Function readability

graph-ui/tools/smoke-w8b.mjs:746–768  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

744
745 /** Lesbarkeit an diesem Halt, oben und unten. Wortgleich mit smoke-w9. */
746 const readability = async (name) => {
747 await closeTooltips(page);
748 const top = await measureReadability(page, READABILITY_EXCLUSIONS);
749 const scrolled = await scrollRegionsToEnd(page, READABILITY_EXCLUSIONS);
750 await page.waitForTimeout(200);
751 const bottom = await measureReadability(page, READABILITY_EXCLUSIONS);
752 await resetScroll(page, READABILITY_EXCLUSIONS);
753 extras.readability.push({
754 name,
755 scrolledRegions: scrolled.length,
756 top: { candidates: top.candidates, overlaps: top.overlaps, clipped: top.clipped },
757 bottom: {
758 candidates: bottom.candidates,
759 overlaps: bottom.overlaps,
760 clipped: bottom.clipped,
761 },
762 });
763 report.overlapViolations += top.overlaps.length + bottom.overlaps.length;
764 report.clippingViolations += top.clipped.length + bottom.clipped.length;
765 report.cutWithoutHint += [...top.clipped, ...bottom.clipped]
766 .filter((entry) => entry.kind === 'cut-without-hint').length;
767 return { top, bottom };
768 };
769
770 /** Die Zaehlung aus AC1, an diesem Halt. */
771 const countTitles = async (where) => {

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