INNER CODE UNIT · Python

star_bucket

crocs-muni/javacard-curated-list · scripts/process_curated_list.py:306

def star_bucket(stars):
    if stars is None:
        return "Unknown"
    if stars == 0:
        return "0"
    if stars <= 4:
        return "1-4"
    if stars <= 9:
        return "5-9"
    if stars <= 24:
        return "10-24"
    if stars <= 49:
        return "25-49"
    if stars <= 99:
        return "50-99"
    return "100+"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…