Model code and dataset: Mating Systems and Evolutionary Rescue | Synapse