An annual study ranked the safest mid-sized cities in America using data on crime rates emergency response and community factors