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

16
LINES

< > BotCompany Repo | #1010958 // Last chat lines as web, for reasoning [OK]

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

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (14772L/105K).

!7

p-noconsole {
  autoRestart();
  Web web = lastChatLinesAsWeb2(5, f makeNodeFromMsg);
  web_dropLabelsStartingWith(web, "Msg ");
  showWeb_noAutoLayout(web, 1000, 600);
}

static void makeNodeFromMsg(ChatMsg msg, WebNode n) {
  n.x = n.y;
  n.addLabel(/*"Text " +*/ quote(msg.text));
  web_addString(n, msg.botMark ? "by bot" : "by user");
  web_addStrings(n, ai_categoriesForChatLine(msg.text));
  n.addLabel("Msg " + msg.globalID);
}

Author comment

Began life as a copy of #1010916

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: #1010958
Snippet name: Last chat lines as web, for reasoning [OK]
Eternal ID of this version: #1010958/10
Text MD5: 0ea0f33f72e9a5c3d2f5781e2963cc2b
Transpilation MD5: db9793085d10d16e9bd2fac0014850e7
Author: stefan
Category: javax / chat
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-10 18:56:02
Source code size: 454 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 360 / 1262
Version history: 9 change(s)
Referenced in: [show references]