@contract
def get_available_resources(threshold, usage, total):
    return dict((host, int(threshold * total[host] - resource))
                for host, resource in usage.items())
Get a map of the available resource capacity.
dataset/ETHPy150Open beloglazov/openstack-neat/neat/globals/vm_placement/bin_packing.py/get_available_resources