Download Jar. Libraryless. Click here for Pure Java version (20304L/144K).
!7 sclass CandidateMsg { S symbol, text; int secs; // seconds after last post Bool bot; } p-tt { ai_alternativeSmartBot(); temp ActualThoughtSpace ts = newThoughtSpace(); new LL<CandidateMsg> candidates; for (S prefix : ll("Chat line", "Smart bot's chat line")) for (L<S> t : ai_all_threeInARow(prefix)) { L<CandidateMsg> l = makeCandidateMsgs(t); continue unless isFalse(l.get(0).bot) && isTrue(l.get(1).bot) && isFalse(l.get(2).bot); candidates.add(l); for (CandidateMsg m : l) print((isTrue(m.bot) ? "[B]" : isFalse(m.bot) ? "[U]" : "[?]") + " " + m.symbol + ": " + quoteBorderless(m.text) + " [" + m.secs + " s]"); print(); } print(n2(candidates, "candidate")); } static L<CandidateMsg> makeCandidateMsgs(L<S> t) { new L<CandidateMsg> l; for (S s : t) { new CandidateMsg m; m.symbol = s; m.text = ai_chatLineText(s); m.secs = (int) ai_chatLineTimeDiff(s)/1000; m.bot = ai_chatLineSentByBot(s); l.add(m); } ret l; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012858 |
Snippet name: | Find Bot Triples (User-Bot Interactions) |
Eternal ID of this version: | #1012858/17 |
Text MD5: | d1f9a41baa9b4570571d46c37cd68641 |
Transpilation MD5: | c279bf4cc9e8ba5d607ed1b3732fed94 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-26 18:07:56 |
Source code size: | 1068 bytes / 40 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 563 / 1227 |
Version history: | 16 change(s) |
Referenced in: | [show references] |