Warning: session_start(): open(/var/lib/php/sessions/sess_n3d3u7h9h9jrpfvalqbp32k8a9, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static Map web_matchAllPerms_partial(Web patternWeb, Web inputWeb) {
ret web_matchAllPerms_partial(patternWeb, inputWeb, 0);
}
static Map web_matchAllPerms_partial(Web patternWeb, Web inputWeb, double minScore) {
L patternNodes = web_nodes(patternWeb);
L inputNodes = web_nodes(inputWeb);
if (l(patternNodes) > l(inputNodes))
null;
new Best> best;
LL subsets = allSubsetsOfLength(l(patternNodes), inputNodes);
for (L subset : subsets) {
LL perms = allPermutations(subset);
for (L perm : perms)
best.put(perm, web_matchNodeLists(patternNodes, perm));
}
L l = isNaN(minScore) ? best! : best.getIfScoreAbove(minScore);
ret l == null ? null : twoListsToOrderedMap(patternNodes, l);
}