Warning: session_start(): open(/var/lib/php/sessions/sess_bpb88q9q4f84eugajbjpdjo2k3, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
svoid gazelle_addPredictionToTreeNode(GazelleTree child, O... _) {
bool debug = boolPar debug(_);
Set badComments = cast optPar badComments(_);
Set acceptablePurposes = cast optPar acceptablePurposes(_);
RuleEngine2_MatchedRule r = child.mr;
GazelleEvalContext ctx = child.ctx;
if (containsAny(r.rule.comments, badComments)
|| acceptablePurposes != null && !acceptablePurposes.contains(unnull(r.rule.purpose))) {
if (debug) print("prediction=bad for various reasons");
child.prediction = 'bad;
} else {
/*ai_gazelle_analyzeStatementsForRule_Data data = ctx.dataByRule.get(r.rule.globalID);
child.prediction = data == null ? null : ai_gazelle_predictor1_onData(r, data);*/
if (ctx.predictor == null)
child.prediction = null;
else {
child.prediction = ctx.predictor.get(ctx, r);
if (debug) print("Prediction=" + child.prediction + " for " + r + " (" + (r.moreConditions() ? "unsatisfied" : "satisfied") + ") by " + ctx.predictor);
}
}
}