Warning: session_start(): open(/var/lib/php/sessions/sess_1lbc6hi12sus85f71vlgt6fruf, 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
svoid gazelle_fakery_processInput_multi_v2(TreeMap sections, O... _) {
int maxMonologue = optPar maxMonologue(_, 5);
ErrorCounter errorCounter = optPar errorCounter(_, new ErrorCounter);
for (fS key : startingWithIC(keys(sections), "test input")) errorCounter.run(key, r {
LS inputLines = tlft(sections.get(key));
S expectedOutput = sections.get(replaceIC(key, "test input", "expected output"));
S expectedTempFacts = sections.get(replaceIC(key, "test input", "expected temporary facts"));
print("\nPROCESSING: " + key + "\n");
temporaryFacts.clear();
new LS lines;
int nMonologue = 0;
for i over inputLines: {
S input = inputLines.get(i);
S user = leadingSquareBracketStuff(input);
input = dropActuallyLeadingSquareBracketStuff(input);
gazelle_gatherFulfillments(ll(nu GazelleLine(text := input, extras := litmap(+user))), fulfillments, debug := true);
L l = dm_gazelle_reasonAboutChatInput_v2(user, input, paramsPlus(_,
preContext := subList(inputLines, 0, i),
respondingToHuman := nMonologue == 0,
contextMaker := f dm_gazelle_standardEvalContext,
requiredComment := null, debug := true));
print("Got " + n2(l, "child", "children") + " with line types: " + collect lineType(l));
for (GazelleTree t : l) {
if (eq(t.lineType, "temporary fact"))
temporaryFacts.add(printWithIndent("TEMP FACT> ", t.line));
else {
lines.add(printWithIndent("OUT> ", t.line));
if (++nMonologue < maxMonologue)
inputLines.add(t.line);
}
}
}
assertEqualsVerbose(lines, tlft(expectedOutput));
assertEqualsVerbose(asList(temporaryFacts), tlft(expectedTempFacts));
});
errorCounter.print();
}