def get_user_active_repositories(user):
    """
    Return all the active repositories for a user.
    It returns an empty list if the user is anonymous.
    """
    try:
        return user.repositories.filter(webhook__active=True)
    except __HOLE__:
        return []
dataset/ETHPy150Open m-vdb/github-buildservice-boilerplate/buildservice/utils/views.py/get_user_active_repositories