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

24
LINES

< > BotCompany Repo | #1012716 // Test Thought Blocking v3 (with symbols, OK)

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

Download Jar. Libraryless. Click here for Pure Java version (19722L/140K).

!7

unset flag SymbolAsString.

p {
  ai_alternativeSmartBot();
  ai_useThoughtSpaces(true);
  
  ActualThoughtSpace myTS = new ActualThoughtSpace(currentThoughtSpace());
  thoughtSpace(myTS);
  
  myTS.blockedA = litciset(symbol("Haskell"));
  assertContainsIC(print(ai_texts("Java", "is", "$X")), symbol("a programming language"));

  bench 10000 {
    myTS.blockedA.add(symbol("Java"));
    assertDoesntContainIC(ai_texts("Java", "is", "$X"), symbol("a programming language"));
    
    myTS.blockedA.remove(symbol("Java"));
    assertContainsIC(ai_texts("Java", "is", "$X"), symbol("a programming language"));
  }

  print("OK");
}

Author comment

Began life as a copy of #1012677

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: #1012716
Snippet name: Test Thought Blocking v3 (with symbols, OK)
Eternal ID of this version: #1012716/7
Text MD5: 73214c8f284067cd15ee4724db918144
Transpilation MD5: 41f345bccbc1e5da4e1e0a975c046245
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 22:06:55
Source code size: 658 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 517 / 1216
Version history: 6 change(s)
Referenced in: [show references]