INNER CODE UNIT · Python

dev_bucket

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

def dev_bucket(devs):
    if devs is None:
        return "Unknown"
    if devs == 1:
        return "1"
    if devs <= 3:
        return "2-3"
    if devs <= 10:
        return "4-10"
    return "11+"


# shields.io reports this SPDX id when GitHub detected a LICENSE file it couldn't
# classify against a known license, which reads more like "unknown" than a real license name.
UNRECOGNIZED_LICENSE_VALUES = {"noassertion", "repo not found", "none", "not specified"}


def license_bucket(license_name):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…