def convert_to_int(s):
    """
    Convert string to integer
    :param s: Input string
    :return: Interpreted value if successful, 0 otherwise
    """
    try:
        nr = int(s)
    except (ValueError, __HOLE__):
        nr = 0

    return nr
dataset/ETHPy150Open farshield/pathfinder/src/pathfinder/model/tripwire.py/convert_to_int