1 | static Map<PairS, Int> ai_ruleEngine2_mappingQualities(RuleEngine2.Rule rule) { |
2 | new Map<PairS, Int> map; |
3 | new Matches m; |
4 | for (S s : rule.comments) |
5 | if (match("changing * to * is *", s, m)) { |
6 | int value = eqic($1, "ok") ? 1 : eqic($1, "bad") ? -1 : 0; |
7 | map.put(pair($2, $3), value); |
8 | } |
9 | ret map; |
10 | } |
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: | 283 / 331 |
Version history: | 3 change(s) |
Referenced in: | [show references] |