INNER CODE UNIT · Python

license_score

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

def license_score(candidate: dict[str, Any]) -> tuple[int, str]:
    points, source = _clamped_explicit_score(
        candidate,
        ("license_score", "license_points"),
        default=2 if candidate.get("license") else 0,
        minimum=0,
        maximum=4,
    )
    if source:
        return points, f"license score from {source}"
    if candidate.get("license"):
        return points, "license present; set license_score for precise scoring"
    return points, "license missing; set license_score after review"


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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…