Warning: session_start(): open(/var/lib/php/sessions/sess_hqe0v0ddb8peu9b1hcm9n0ejng, 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 L lineComp_replacePairWithUpdatingPairCount_v2(IContentsIndexedList2 l, Int pa, Int pb, Int y, LineComp_PairCounts pairCounts) {
int i = 0, copyFrom = 0, copyTo = 0, n = l(l);
while (true) {
i = indexOfIntPairInContentsIndexedList(l, pa, pb, i);
if (i < 0) break;
if (copyFrom != copyTo) {
while (copyFrom < i)
l.set(copyFrom++, l.get(copyTo++));
} else
copyTo = copyFrom = i;
int to = i+2, to_new = i+1;
pairCounts.removeAll(overlappingIntPairs(subList(lineComp_listWithGap(l, copyTo, copyFrom), i-1, to+1)));
l.set(i, y);
copyFrom += 2;
copyTo++;
pairCounts.addAll(overlappingIntPairs(subList(lineComp_listWithGap(l, copyTo, copyFrom), i-1, to_new+1)));
i = to_new;
}
if (copyFrom != copyTo) {
while (copyFrom < n)
l.set(copyFrom++, l.get(copyTo++));
truncateList(l, copyTo);
}
ret l;
}