<commit_before>import QJMCSetUp

#TODO use this where possible in the low memory solution
def evolvePsi(psi, t, dt, HEff):
    HEffExponentDt = QJMCSetUp.HEffExponentProduction(HEff,dt)
    psi = HEffExponentDt.dot(psi)
    t += dt
    return t, psi<commit_msg>Added a function to evolve by a particular exponent to unify code.<commit_after>import QJMCSetUp

def evolvePsi(psi, t, dt, HEff):
    HEffExponentDt = QJMCSetUp.HEffExponentProduction(HEff,dt)
    psi = HEffExponentDt.dot(psi)
    t += dt
    return t, psi

def evolvePsiByExponent(psi, t, dt, HEffExponentDt):
    psi = HEffExponentDt.dot(psi)
    t += dt
    return t, psi
{'fraction_non_alphanumeric': 0.08962264150943396, 'fraction_numerical': 0.0, 'mean_word_length': 4.096, 'pattern_counts': {'":': 0, '<': 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': '1011124', 'n_tokens_mistral': 248, 'n_tokens_neox': 238, 'n_words': 64}