1 | static ai_gazelle_analyzeStatementsForRule_Data ai_gazelle_analyzeStatementsForRule_multiSet(MultiSet<S> l) { |
2 | ai_gazelle_analyzeStatementsForRule_Data data = ai_gazelle_analyzeStatementsForRule(keys(l)); |
3 | data.statements = l; |
4 | data.varScores = new Map; |
5 | new Matches m; |
6 | for (S s : keys(l)) |
7 | if "in a * mapping, variable * was mapped to *" { |
8 | PairS p = pair($2, $3); |
9 | PosNegScore score = getOrCreatePosNegScore(data.varScores, p); |
10 | if (eq($1, 'good)) score.pos += l.get(s); |
11 | else if (eq($1, 'bad)) score.neg += l.get(s); |
12 | } |
13 | |
14 | ret data; |
15 | } |
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: | 319 / 357 |
Version history: | 5 change(s) |
Referenced in: | [show references] |