def round_down(num, divisor):
    if divisor == 0:
        divisor = 1

    if divisor == 1:
        return num

    return num - (num % divisor)
dataset/ETHPy150Open aaronlidman/openstreetPOIs/osmpois.py/round_down/original