@classmethod
    def redefine_cluster_with_map(cls, initial_cluster, new_cluster):
        elements_map = initial_cluster.all_elements # The map are the elements themselves
        remapped_new_cluster_elems = []
        for element in new_cluster.all_elements:
            remapped_new_cluster_elems.append(elements_map[element])

        return Cluster(None, remapped_new_cluster_elems)
Fetch MD5 hashes for all resources from VSM.
dataset/ETHPy150Open victor-gil-sepulveda/pyProCT/pyproct/clustering/protocol/refinement/Refiner.py/Refiner.redefine_cluster_with_map--crossover with--dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/plugins/ml2/drivers/cisco/n1kv/n1kv_client.py/Client.list_md5_hashes