(deltaReward, taskRegressions, threshold)
| 115 | }; |
| 116 | |
| 117 | function verdict(deltaReward, taskRegressions, threshold) { |
| 118 | if (taskRegressions.hard.length > 0) return VERDICT.REGRESSED; |
| 119 | if (deltaReward >= threshold) return VERDICT.IMPROVED; |
| 120 | if (deltaReward <= -threshold) return VERDICT.REGRESSED; |
| 121 | return VERDICT.NOISE; |
| 122 | } |
| 123 | |
| 124 | function exitCodeFor(v) { |
| 125 | if (v === VERDICT.IMPROVED) return 0; |
no outgoing calls
no test coverage detected