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

23
LINES

< > BotCompany Repo | #1007627 // Test fast-loading from databases

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

Libraryless. Click here for Pure Java version (7931L/53K/175K).

!7

html {
  if (!webAuthed()) ret "no";
  Class main = getBotMainClass("Truth Table");
  
  new StringBuffer buf;
  O concepts = get(main, "mainConcepts");
  buf.append("Statements: " + call(concepts, "countConcepts") + "\n");
  for (O c : values(cloneMap((Map) get(concepts, "concepts")))) {
    Statement s = fastLoadStatement(c); 
    //buf.append("Statement: " + getString(c, "globalID") + " - " + getString(c, "text") + "\n");
    buf.append("Statement: " + s.globalID + " - " + s.text + "\n");
  }
  
  main = getBotMainClass(dbBotName(aiConceptsProgram()));
  concepts = get(main, "mainConcepts");
  buf.append("Concepts: " + call(concepts, "countConcepts") + "\n");
  for (O c : values(cloneMap((Map) get(concepts, "concepts"))))
    buf.append("Concept: " + getString(c, "globalID") + " - " + getString(c, "name") + "\n");
    
  ret hpre(htmlencode(buf));
}

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: #1007627
Snippet name: Test fast-loading from databases
Eternal ID of this version: #1007627/9
Text MD5: 5b4164c518058c9883708dbf52fce5ae
Transpilation MD5: be16f3f61aa3c27135d822af2b8f9116
Author: stefan
Category: javax / a.i. / html
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-29 15:47:00
Source code size: 890 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 519 / 662
Version history: 8 change(s)
Referenced in: [show references]