MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / clampWikiGraphPan

Function clampWikiGraphPan

deployments/desktop/static/desktop.js:3787–3796  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3785 const key = entry.label.toLowerCase();
3786 const overlaps = selected.some((item) => {
3787 const existing = item.label.toLowerCase();
3788 return existing.includes(key) || key.includes(existing);
3789 });
3790 if (!overlaps) selected.push(entry);
3791 });
3792 return selected;
3793 }
3794
3795 function paperScore(node, degree) {
3796 const id = graphId(node);
3797 return (degree[id] || 0) + Number(node.score || 0) + (graphBody(node) ? 0.2 : 0);
3798 }
3799

Callers 1

applyWikiGraphTransformFunction · 0.85

Calls 2

$Function · 0.70
clampFunction · 0.70

Tested by

no test coverage detected