def safe_divide(numerator, denominator):
    numerator = float(numerator)
    denominator = float(denominator)
    if denominator > 0:
        return numerator / denominator
    else:
        return 0
Return numerator / denominator or 0 if denominator <= 0.
dataset/ETHPy150Open girder/girder/tests/js_coverage_tool.py/safe_divide