def safeint(s):
    """Always returns an int. Returns 0 on failure."""
    try:
        return int(force_unicode(s))
    except (ValueError, __HOLE__):
        return 0
dataset/ETHPy150Open jacobian-archive/jellyroll/src/jellyroll/providers/utils/__init__.py/safeint