def _int_or_float(s):

    if isinstance(s, float):
        # Already a float so just pass through
        return s

    try:
        return int(s)
    except (ValueError, TypeError):
        try:
            return float(s)
        except (ValueError, TypeError) as exc:
            raise ValueError(*exc.args)
Add a matching application that has the current dataset attached as a
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/card.py/_int_or_float--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/test/test_blockdevice.py/add_application_with_volume