INNER CODE UNIT · Python

default

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

        default=min(30, len(matched) * 5),
        minimum=0,
        maximum=30,
    )
    score = explicit_score
    reason = f"JD match score from {source}" if source else f"{len(matched)} agent-supplied JD matches"
    return score, matched, reason


def _tag_slug(value: Any) -> str:
    text = str(value or "").strip().lower()
    text = text.replace("_", "-").replace("+", "-")
    text = re.sub(r"[\s/]+", "-", text)
    text = re.sub(r"[^a-z0-9.#\-一-鿿]+", "", text)
    text = re.sub(r"-+", "-", text).strip("-")
    return text

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…