INNER CODE UNIT · Python

runnable_score

LiuMengxuan04/shushu-internship-tool · skills/shushu-internship-tool/scripts/shushu_internship_tool/candidate_score.py:82

def runnable_score(candidate: dict[str, Any]) -> tuple[int, str]:
    points, source = _clamped_explicit_score(
        candidate,
        ("runnable_score", "runnable_points"),
        default=5,
        minimum=-5,
        maximum=20,
    )
    if source:
        return points, f"runnable score from {source}"
    raw = candidate.get("runnable")
    if isinstance(raw, bool):
        return (20, "runnable") if raw else (-5, "not verified runnable")
    return points, "runnable not scored explicitly"


def compute_score(candidate: dict[str, Any]) -> tuple[int, str]:
    points, source = _clamped_explicit_score(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…