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

17
LINES

< > BotCompany Repo | #1010916 // Last chat lines as web, with IPs and categories [OK]

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

Download Jar. Transpiled version (14668L) is out of date.

!7

p-noconsole {
  chatLinesAsWeb_addIP = true;
  Web web = lastChatLinesAsWeb(5);
  for (WebNode node : web_nodesStartingWith(web, "Text ")) pcall {
    S text = web_unquoteLastToken(node);
    L<S> categories = ai_categoriesForChatLine(text);
    for (S c : categories) {
      WebNode catNode = web_findOrMakeForwardRelated(node, "is a");
      web_setPosition(catNode, node.x+0.2, node.y-0.1);
      web_addLabel(catNode, c);
    }
  }
  web_addBaseCategories(web);
  showWeb_noAutoLayout(web, 1000, 600);
}

Author comment

Began life as a copy of #1010908

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1010916
Snippet name: Last chat lines as web, with IPs and categories [OK]
Eternal ID of this version: #1010916/12
Text MD5: 4ad8c4a8accb9688a42cb2822f5190d4
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:21:20
Source code size: 528 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 337 / 840
Version history: 11 change(s)
Referenced in: [show references]