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

16
LINES

< > BotCompany Repo | #1021787 // Gazelle: All Rule Applications

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

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

1  
!7
2  
3  
!include #1021788
4  
5  
cmodule AppliedRules > DynAppliedRules {
6  
  // API
7  
  
8  
  // ruleID -> count
9  
  Map<S, Int> statsForNonJudged() {
10  
    new MultiSet<S> ms;
11  
    for (AppliedRule r : concepts())
12  
      if (empty(r.judgement))
13  
        ms.add(r.ruleID);
14  
    ret multiSetToMap(ms);
15  
  }
16  
}

Author comment

Began life as a copy of #1021413

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: #1021787
Snippet name: Gazelle: All Rule Applications
Eternal ID of this version: #1021787/11
Text MD5: 02048317328b6e10c1d229d99d50ac0e
Transpilation MD5: d8145a6495c649291599168aa320d966
Author: stefan
Category: javax / a.i.
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-05 21:28:54
Source code size: 297 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 344 / 12044
Version history: 10 change(s)
Referenced in: [show references]