MCPcopy Create free account
hub / github.com/antirez/ds4 / eval_prefill_progress

Function eval_prefill_progress

ds4_eval.c:3605–3619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3603 return NULL;
3604 }
3605 memcpy(out, content, len);
3606 out[len] = '\0';
3607 return out;
3608}
3609
3610typedef enum {
3611 REGRADE_NOT_GRADED,
3612 REGRADE_PASSED,
3613 REGRADE_FAILED,
3614} regrade_outcome;
3615
3616/* Decide how one trace case regrades. Only PASSED/FAILED traces were graded by
3617 * a completed run; STOPPED/SKIPPED/SWITCHED/ERROR cases carry partial or no
3618 * model output and must be reported as not-graded rather than counted, since
3619 * grading them inflates the totals and raises spurious "changed" drift. An
3620 * empty status keeps legacy traces (written before the status line) working. */
3621static regrade_outcome regrade_case_outcome(const eval_case *tc,
3622 const char *traced_status,

Callers

nothing calls this directly

Calls 5

tui_consume_inputFunction · 0.85
tui_run_clock_tickFunction · 0.85
tui_refreshFunction · 0.85
tui_wait_if_pausedFunction · 0.85
now_secFunction · 0.70

Tested by

no test coverage detected