1 | // rules are t3(text, comment, ruleID) |
2 | static GazelleEvalContext gazelle_stdEvalContext(L<T3<S>> rules) { |
3 | long startTime = sysNow(); |
4 | new GazelleEvalContext ctx; |
5 | ctx.engine = new RuleEngine2; |
6 | ctx.engine.addRules2(rules); |
7 | gazelle_changeInTypesForRulesWithMultipleInputs(ctx.engine); |
8 | |
9 | // gather data for predictor |
10 | MultiMap<S> statementsByRule = ai_gazelle_indexStatementsByRule(dm_gazelle_statementsFromAppliedRules()); |
11 | ctx.dataByRule = mapValues ai_gazelle_analyzeStatementsForRule(multiMapToMap(statementsByRule)); |
12 | |
13 | ctx.predictor = dm_gazelle_standardPredictor(); |
14 | done2(startTime, "Making engine with " + n2(rules, "rule")); |
15 | ret ctx; |
16 | } |
Began life as a copy of #1021523
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1021684 |
Snippet name: | gazelle_stdEvalContext |
Eternal ID of this version: | #1021684/6 |
Text MD5: | 9c232011a21069230601d6aa8136d2e7 |
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-03 10:10:15 |
Source code size: | 673 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 288 / 335 |
Version history: | 5 change(s) |
Referenced in: | [show references] |