def lowercase_ext(filename):
    if '.' in filename:
        main, ext = os.path.splitext(filename)
        return main + ext.lower()
    # For consistency with os.path.splitext,
    # do not treat a filename without an extension as an extension.
    # That is, do not return filename.lower().
    return filename
Curry arbitrary process metric extraction
dataset/ETHPy150Open jeffwidman/flask-uploads/flask_uploads.py/lowercase_ext--crossover with--dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/builtin_monitors/windows_system_metrics.py/_gather_metric