def get_ip(data):
    try:
        ip = data.public_ips[0]
    except Exception:
        ip = data.private_ips[0]
    return ip
Generate a single paragraph
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/cloudstack.py/get_ip--crossover with--dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/create_fakes.py/Sciencer.science_paragraph