INNER CODE UNIT · Python
minimum
LiuMengxuan04/shushu-internship-tool · skills/shushu-internship-tool/scripts/shushu_internship_tool/candidate_score.py:87
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(
candidate,
("resource_fit_score", "resource_score", "compute_score", "compute_points"),
default=5,
minimum=0,
maximum=10,