Warning: session_start(): open(/var/lib/php/sessions/sess_gndaqjg0i1pf5o48tes74mkmd2, 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
// recompile + reload #1002408 (Turing Bot) after changing this
static L turingTests = litlist("#1002332", "#1002413", "#1002417", "#1002449");
static S getTuringScore_eleuURL = "http://bots.tinybrain.de/1002076/raw";
static S getTuringScore() {
long s = 0, n = 0;
int tests = 0;
for (S testID : turingTests) pcall {
PersistentMap scores = new PersistentMap(testID, "turing-scores.map");
O score = scores.get(getTuringScore_eleuURL);
if (score == null) continue;
s += (long) get(score, "score");
n += (long) get(score, "n");
++tests;
}
S result = s + " of " + n + " points (" + n(tests, "test");
int notRun = l(turingTests)-tests;
if (notRun > 0)
result += ", " + notRun + " not run yet";
ret result + ")";
}