<commit_before>import unittest
import numpy as np
import flavio

constraints = flavio.default_parameters
wc_obj = flavio.WilsonCoefficients()
par = constraints.get_central_all()

class TestKlnu(unittest.TestCase):
    def test_klnu(self):
        Vus = flavio.physics.ckm.get_ckm(par)[0,1]
        # compare to the experimental values
        self.assertAlmostEqual(
            flavio.Observable.get_instance("BR(K+->enu)").prediction_central(constraints, wc_obj),
            1.582e-5, delta=3*0.007e-5)
        self.assertAlmostEqual(
            flavio.Observable.get_instance("BR(K+->munu)").prediction_central(constraints, wc_obj),
            63.56e-2, delta=3*0.11e-2)

    def test_rklnu(self):
        # compare to 0707.4464
        self.assertAlmostEqual(
            flavio.Observable.get_instance("Remu(K+->lnu)").prediction_central(constraints, wc_obj),
            2.477e-5, delta=2*0.001e-5)

    def test_pilnu(self):
        Vus = flavio.physics.ckm.get_ckm(par)[0,1]
        # compare to the experimental values
        self.assertAlmostEqual(
            flavio.Observable.get_instance("BR(pi+->enu)").prediction_central(constraints, wc_obj),
            1.23e-4+7.39e-7, delta=3e-6)
        self.assertAlmostEqual(
            flavio.Observable.get_instance("BR(pi+->munu)").prediction_central(constraints, wc_obj),
            99.9877e-2, delta=0.02)

    def test_rpilnu(self):
        # compare to 0707.4464
        self.assertAlmostEqual(
            flavio.Observable.get_instance("Remu(pi+->lnu)").prediction_central(constraints, wc_obj),
            1.2352e-4, delta=2*0.0001e-2)
<commit_msg>[klnu] Adapt test to account for change in Vus<commit_after>import unittest
import numpy as np
import flavio

constraints = flavio.default_parameters
wc_obj = flavio.WilsonCoefficients()
par = constraints.get_central_all()

class TestKlnu(unittest.TestCase):
    def test_klnu(self):
        Vus = flavio.physics.ckm.get_ckm(par)[0,1]
        # compare to the experimental values
        self.assertAlmostEqual(
            flavio.Observable.get_instance("BR(K+->enu)").prediction_central(constraints, wc_obj),
            1.582e-5, delta=3*0.007e-5)
        self.assertAlmostEqual(
            flavio.Observable.get_instance("BR(K+->munu)").prediction_central(constraints, wc_obj),
            63.56e-2, delta=8*0.11e-2)

    def test_rklnu(self):
        # compare to 0707.4464
        self.assertAlmostEqual(
            flavio.Observable.get_instance("Remu(K+->lnu)").prediction_central(constraints, wc_obj),
            2.477e-5, delta=2*0.001e-5)

    def test_pilnu(self):
        Vus = flavio.physics.ckm.get_ckm(par)[0,1]
        # compare to the experimental values
        self.assertAlmostEqual(
            flavio.Observable.get_instance("BR(pi+->enu)").prediction_central(constraints, wc_obj),
            1.23e-4+7.39e-7, delta=3e-6)
        self.assertAlmostEqual(
            flavio.Observable.get_instance("BR(pi+->munu)").prediction_central(constraints, wc_obj),
            99.9877e-2, delta=2*0.02)

    def test_rpilnu(self):
        # compare to 0707.4464
        self.assertAlmostEqual(
            flavio.Observable.get_instance("Remu(pi+->lnu)").prediction_central(constraints, wc_obj),
            1.2352e-4, delta=2*0.0001e-2)

{'fraction_non_alphanumeric': 0.12793893129770992, 'fraction_numerical': 0.052213740458015266, 'mean_word_length': 2.9517490952955368, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '4920236', 'n_tokens_mistral': 1258, 'n_tokens_neox': 1165, 'n_words': 156}