Warning: session_start(): open(/var/lib/php/sessions/sess_0oci7ra9mql7dqhd60jac1l8mt, 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
concept TitleSeen {
S title;
}
cmodule OperationGroupSpike > DynPrintLog {
L theories = syncList();
// a theory here is a list of things
class Theory {
IF1 checkExample;
Set examples;
}
class PrefixTheory > Theory {
S prefix;
{ checkExample = s -> isPrefixOf(prefix, s); }
}
class SuffixTheory > Theory {
S suffix;
{ checkExample = s -> isSuffixOf(suffix, s); }
}
start-thread {
dbIndexing(TitleSeen, 'title);
doEvery(3.0, rEnter gather);
}
void gather {
L l = dm_windows();
LS titles = collect windowTitle(l);
oMap readTitle(this, titles);
}
void readTitle(S title) {
if (uniq_trueIfNew(TitleSeen, +title)) print("New title: " + title);
theories.add(titles);
}
}