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

32
LINES

< > BotCompany Repo | #1022791 // Gazelle: Raw Bot (processes actionable lines)

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (19177L/114K).

1  
!7
2  
3  
cmodule GRawBot > DynPrintLog {
4  
  bool debug;
5  
  transient new GazelleContextCache_v2 contextCache;
6  
  
7  
  start {
8  
    ownResource(contextCache.listenToMessages());
9  
    contextCache.alwaysFullRefresh();
10  
    dm_vmBus_onMessage('gazelleActionableLine, vf<S> processLine);
11  
  }
12  
  
13  
  void processLine(S lineID) q {
14  
    print("Processing line: " + lineID);
15  
    GazelleLine line = gazelle_lineForGlobalID(lineID);
16  
    if (line == null) ret with print("Line not found");
17  
    S content = line.text;
18  
    print("Text: " + content);
19  
    
20  
    LS preContext = null; // TODO
21  
22  
    O[] params = litmapparams(+preContext,
23  
      badComments := mechCISet("Knock-out rule comments"),
24  
      respondingToHuman := !line.bot,
25  
      +debug,
26  
      contextMaker := contextCache);
27  
    
28  
    L<GazelleTree> l = gazelle_reason_repeat(content, params);
29  
    pnl(l);
30  
    print();
31  
  }
32  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022791
Snippet name: Gazelle: Raw Bot (processes actionable lines)
Eternal ID of this version: #1022791/4
Text MD5: 4b95a8422a54097dd725f72d2f308d3f
Transpilation MD5: f10bf7620fd7de33d84288ddeacafb0c
Author: stefan
Category: javax / gazelle
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-07 16:39:39
Source code size: 882 bytes / 32 lines
Pitched / IR pitched: No / No
Views / Downloads: 246 / 690
Version history: 3 change(s)
Referenced in: [show references]