<commit_before>import os
import numpy as np

from dessn.models.d_simple_stan.approx_skewnorm.run import get_approximate_mb_correction
from dessn.models.d_simple_stan.run import run, add_weight_to_chain


if __name__ == "__main__":

    file = os.path.abspath(__file__)
    stan_model = os.path.dirname(file) + "/model.stan"

    mB_mean, mB_width, mB_alpha = get_approximate_mb_correction("simple")
    print("Mean, width and alpha of selection function are ", mB_mean, mB_width, mB_alpha)

    data = {
        "mB_mean": mB_mean,
        "mB_width2": mB_width**2,
        "mB_alpha2": mB_alpha**2,
        "data_source": "simple",
        "n": 1000,
        "add_zs": 501
    }
    print("Running %s" % file)<commit_msg>Less supernova to speed up fits<commit_after>import os
import numpy as np

from dessn.models.d_simple_stan.approx_skewnorm.run import get_approximate_mb_correction
from dessn.models.d_simple_stan.run import run, add_weight_to_chain


if __name__ == "__main__":

    file = os.path.abspath(__file__)
    stan_model = os.path.dirname(file) + "/model.stan"

    mB_mean, mB_width, mB_alpha = get_approximate_mb_correction("simple")
    print("Mean, width and alpha of selection function are ", mB_mean, mB_width, mB_alpha)

    data = {
        "mB_mean": mB_mean,
        "mB_width2": mB_width**2,
        "mB_alpha2": mB_alpha**2,
        "data_source": "simple",
        "n": 300,
        "add_zs": 501
    }
    print("Running %s" % file)
{'fraction_non_alphanumeric': 0.11498973305954825, 'fraction_numerical': 0.014373716632443531, 'mean_word_length': 3.540372670807453, 'pattern_counts': {'":': 14, '<': 3, '<?xml version=': 0, '>': 3, '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}}
{'dir': 'git-commits-cleaned', 'id': '6812308', 'n_tokens_mistral': 555, 'n_tokens_neox': 533, 'n_words': 112}