def is_git_sha(text):
    """Returns True if this is probably a git sha"""
    # Handle both the full sha as well as the 7-character abbrviation
    if (40, 7) in len(text):
        try:
            int(text, 16)
            return True
        except ValueError:
            pass
    return False
dataset/ETHPy150Open warner/petmail/support/peep.py/is_git_sha/swapped operands of `in`