{'fraction_non_alphanumeric': 0.014630577907827359, 'fraction_numerical': 0.0, 'mean_word_length': 5.1900452488687785, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
GWSim: A python package to create GW mock samples for different astrophysical populations and cosmological models of binary black holes

Precision cosmology with gravitational wave (GW) sources requires understanding the interplay between GW source population and cosmological parameters governing the dynamics of the Universe. With the fast increase of GW detections, for exploring many aspects of cosmology and fundamental physics it is necessary to develop a tool which can simulate GW mock samples for several population and cosmological models with and without a galaxy catalog. We have developed a new code called GWSim , allowing to make GW mock events from a large range of conﬁgurations, varying the cosmology, the merger rate, and the GW source parameters (mass and spin distributions in particular), for a given network of GW detectors. We restrict the cosmology to spatially ﬂat universes, including models with varying dark energy equation of state. GWSim provides each mock event with a position in the sky and a redshift; these values can be those of random host galaxies coming from an isotropic and homogeneous simulated Universe or a user-supplied galaxy catalog. We use realistic detector conﬁgurations of the LIGO and Virgo network of detectors to show the performance of this code for the latest observation runs and the upcoming observation run.