// rules are t3(text, comment, ruleID) static GazelleEvalContext gazelle_stdEvalContext_v2(L<T3<S>> rules, O... _) { long startTime = sysNow(); new GazelleEvalContext ctx; ctx.engine = new RuleEngine2; ctx.engine.addRules2(rules); gazelle_changeInTypesForRulesWithMultipleInputs(ctx.engine); // gather data for predictor MultiSet<S> statements = dm_gazelle_statementsFromAppliedRules_multiSet(); ctx.dataByRule = new Map; Map<S, MultiSet<S>> statementsByRule = ai_gazelle_indexStatementsByRule_multiSet(statements); for (S ruleID, MultiSet<S> statements2 : statementsByRule) { ctx.dataByRule.put(ruleID, ai_gazelle_analyzeStatementsForRule_multiSet(statements2)); } ctx.predictor = dm_gazelle_standardPredictor(_); done2(startTime, "Making engine with " + n2(rules, "rule")); ret ctx; }
Began life as a copy of #1021684
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: | #1021973 |
Snippet name: | gazelle_stdEvalContext_v2 - use statement multisets [LIVE] |
Eternal ID of this version: | #1021973/4 |
Text MD5: | b1fb21ba040475f125d08645d3025da1 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-07 18:57:54 |
Source code size: | 841 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 302 / 339 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |