Warning: session_start(): open(/var/lib/php/sessions/sess_bghgs2dlrso6i2lpmcupsdjoko, 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
!7
sclass Entry {
long msgID;
S originalLine;
S interpretableText;
S ruleID;
//S matchedRuleStruct;
sS _fieldOrder = "msgID originalLine interpretableText";
}
set flag DynModule.
cmodule InterpretableTest > DynObjectTable {
transient int maxInterpretablesPerLine = 20;
start {
addCountToName();
thread { scan(); }
}
visualize {
ret withCenteredButtons(super.visualize(), "Scan", rThread scan);
}
void scan enter {
new L list;
new Flag interrupted;
temp AutoCloseable action = dm_currentAction("Scanning chat", rRaiseFlag(interrupted));
F0 contextMaker = new GazelleContextCache_v2().fill();
L lines = dm_discord_allLines();
int i = 0;
for (GazelleLine line : reversed(lines)) {
++i;
if (!licensed() || interrupted!) break;
Collection l = gazelle_preprocess(line.text, +contextMaker);
for (GInterpretable intp : l)
list.add(nu Entry(originalLine := line.text, msgID := line.msgID, interpretableText := intp.text, ruleID := intp.ruleID));
call(action, 'setText, "Found " + n2(list, "interpretable") + ", scanned " + i + "/" + n2(lines, "line"));
}
setList(list);
}
}