static ai_gazelle_analyzeStatementsForRule_Data ai_gazelle_analyzeStatementsForRule_multiSet(MultiSet<S> l) { ai_gazelle_analyzeStatementsForRule_Data data = ai_gazelle_analyzeStatementsForRule(keys(l)); data.statements = l; data.varScores = new Map; new Matches m; for (S s : keys(l)) if "in a * mapping, variable * was mapped to *" { PairS p = pair($2, $3); PosNegScore score = getOrCreatePosNegScore(data.varScores, p); if (eq($1, 'good)) score.pos += l.get(s); else if (eq($1, 'bad)) score.neg += l.get(s); } ret data; }
Began life as a copy of #1021439
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: | #1021970 |
Snippet name: | ai_gazelle_analyzeStatementsForRule_multiSet |
Eternal ID of this version: | #1021970/6 |
Text MD5: | 16c593429c87f166df2b0829bf376ccb |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-04 15:35:50 |
Source code size: | 585 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 317 / 354 |
Version history: | 5 change(s) |
Referenced in: | [show references] |