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

10
LINES

< > BotCompany Repo | #1021404 // ai_ruleEngine2_mappingQualities

JavaX fragment (include)

static Map<PairS, Int> ai_ruleEngine2_mappingQualities(RuleEngine2.Rule rule) {
  new Map<PairS, Int> map;
  new Matches m;
  for (S s : rule.comments)
    if (match("changing * to * is *", s, m)) {
      int value = eqic($1, "ok") ? 1 : eqic($1, "bad") ? -1 : 0;
      map.put(pair($2, $3), value);
    }
  ret map;
}

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: #1021404
Snippet name: ai_ruleEngine2_mappingQualities
Eternal ID of this version: #1021404/4
Text MD5: f274ddbad1b7590e3669ad61e80d13ce
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-10 21:30:45
Source code size: 327 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 284 / 332
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)