Uses 5312K of libraries. Click here for Pure Java version (2367L/15K/52K).
!752 static new HighestShortest highest; static new ShortestPercentiles percentiles; static S text; static double lastScore; p { load("highest"); load("percentiles"); } // returns true when updated result static synchronized bool suck(S desc, Algorithm algorithm) { print("Best score: " + highest.score); bool saved = false; double score = scoreAlgorithm(algorithm); lastScore = score; if (highest.update(desc, score)) { save("highest"); saved = true; } if (percentiles.update(desc, score)) { save("percentiles"); saved = true; } ret saved; } static S highestDesc() { ret highest.a; } static double highestScore() { ret highest.score; } static double scoreAlgorithm(Algorithm algorithm) { ret scoreTextPredictAlgo(algorithm, getText()); } static bool testLua(S luaCode) { ret suck("L " + luaCode, makeLuaTextPredictAlgo("L " + luaCode)); } static S getText() { if (text == null) text = textFromUtf8(lzmaInputStream("#1004694")); ret text; }
Began life as a copy of #1004654
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xinetxnxrdbb
No comments. add comment