Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #1012677 // Test Thought Blocking v2 (OK, and super-fast)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (19056L/135K).

1  
!7
2  
3  
p {
4  
  ai_alternativeSmartBot();
5  
  ai_useThoughtSpaces(true);
6  
  
7  
  ActualThoughtSpace myTS = new ActualThoughtSpace(currentThoughtSpace());
8  
  thoughtSpace(myTS);
9  
  
10  
  myTS.blockedA = litciset("Haskell");
11  
  assertContainsIC(print(ai_texts("Java", "is", "$X")), "a programming language");
12  
13  
  bench 10000 {
14  
    myTS.blockedA.add("Java");
15  
    assertDoesntContainIC(ai_texts("Java", "is", "$X"), "a programming language");
16  
    
17  
    myTS.blockedA.remove("Java");
18  
    assertContainsIC(ai_texts("Java", "is", "$X"), "a programming language");
19  
  }
20  
21  
  print("OK");
22  
}

Author comment

Began life as a copy of #1012664

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1012677
Snippet name: Test Thought Blocking v2 (OK, and super-fast)
Eternal ID of this version: #1012677/8
Text MD5: 8346cc9895cc7fa32a4a390d34af0ec5
Transpilation MD5: 82e10beb1881bf8358c7cebcb8c9bcbc
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-10 21:36:34
Source code size: 580 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 420 / 1098
Version history: 7 change(s)
Referenced in: [show references]