static GazelleEvalContext dm_gazelle_stdEvalContext() { ret dm_gazelle_stdEvalContext(dm_allRulesFromRulesModuleWithCommentsAndIDs()); } static GazelleEvalContext dm_gazelle_stdEvalContext(L> rules) { new GazelleEvalContext ctx; ctx.engine = new RuleEngine2; ctx.engine.addRules2(rules); ctx.engine.callFunctionOnString = func(S function, S s) -> O { dm_callFunctionOnString(function, s) }; // gather data for predictor MultiMap statementsByRule = ai_gazelle_indexStatementsByRule(dm_gazelle_statementsFromAppliedRules()); ctx.dataByRule = mapValues ai_gazelle_analyzeStatementsForRule(multiMapToMap(statementsByRule)); ret ctx; }