<commit_before>from math import sqrt, pi
import numpy as np
import ckmutil
import ckmutil.ckm
import scipy.optimize
from cmath import phase


# Default values for SM parameters
p = {}
p['m_W'] = 80.385
p['m_Z'] = 91.1876
p['GF'] = 1.1663787e-5
p['alpha_e'] = 1 / 127.9
p['alpha_s'] = 0.1185
p['Vus'] = 0.2243
p['Vub'] = 3.62e-3
p['Vcb'] = 4.221e-2
p['gamma'] = 1.27
p['m_e'] = 0.0005109989461
p['m_mu'] = 0.1056583745
p['m_tau'] = 1.77686
p['m_h'] = 125
p['m_u'] = 0.0022
p['m_c'] = 1.28
p['m_t'] = 173.1
p['m_d'] = 0.0047
p['m_s'] = 0.095
p['m_b'] = 4.18


def m2Lambda_to_vMh2(m2, Lambda, C, scale_high):
    """Function to numerically determine the  physical Higgs VEV and mass
    given the parameters of the Higgs potential."""
    try:
        v = (sqrt(2 * m2 / Lambda) + 3 * m2**(3 / 2) /
             (sqrt(2) * Lambda**(5 / 2)) * C['phi'] / scale_high**2)
    except ValueError:
        v = 0
    Mh2 = 2 * m2 * (1 - m2 / Lambda * (3 * C['phi'] - 4 * Lambda * C['phiBox'] +
                                        Lambda * C['phiD'])/scale_high**2)
    return {'v': v, 'Mh2': Mh2}

def _vMh2_to_m2Lambda_SM(v, Mh2):
    m2 = Mh2/2
    Lambda = 2 * m2 / v**2
    return {'m2': m2, 'Lambda': Lambda}

def vMh2_to_m2Lambda(v, Mh2, C, scale_high):
    """Function to numerically determine the parameters of the Higgs potential
    given the physical Higgs VEV and mass."""
    if C['phi'] == 0 and C['phiBox'] == 0 and C['phiD'] == 0:
        return _vMh2_to_m2Lambda_SM(v, Mh2)<commit_msg>Add MSbar running masses for t, H, W, Z from mr<commit_after>from math import sqrt, pi
import numpy as np
import ckmutil
import ckmutil.ckm
import scipy.optimize
from cmath import phase


# Default values for SM parameters: MSbar parameters at M_Z (except GF)
p = {}
p['GF'] = 1.1663787e-5
p['alpha_e'] = 1 / 127.9
p['alpha_s'] = 0.1185
p['Vus'] = 0.2243
p['Vub'] = 3.62e-3
p['Vcb'] = 4.221e-2
p['gamma'] = 1.27
p['m_e'] = 0.000511
p['m_mu'] = 0.1057
p['m_tau'] = 1.777
p['m_u'] = 0.00127  # mu(2 GeV)=0.0022
p['m_c'] = 0.635  # mc(mc)=1.28
p['m_d'] = 0.00270  # md(2 GeV)=0.0047
p['m_s'] = 0.0551  # ms(2 GeV)=0.095
p['m_b'] = 2.85  # mb(mb)=4.18
# MSbar running masses at MZ computed with "mr"
# https://github.com/apik/mr, https://arxiv.org/abs/1601.08143
p['m_t'] = 169.0
p['m_W'] = 80.20
p['m_Z'] = 91.46
p['m_h'] = 130.6


def m2Lambda_to_vMh2(m2, Lambda, C, scale_high):
    """Function to numerically determine the  physical Higgs VEV and mass
    given the parameters of the Higgs potential."""
    try:
        v = (sqrt(2 * m2 / Lambda) + 3 * m2**(3 / 2) /
             (sqrt(2) * Lambda**(5 / 2)) * C['phi'] / scale_high**2)
    except ValueError:
        v = 0
    Mh2 = 2 * m2 * (1 - m2 / Lambda * (3 * C['phi'] - 4 * Lambda * C['phiBox'] +
                                        Lambda * C['phiD'])/scale_high**2)
    return {'v': v, 'Mh2': Mh2}

def _vMh2_to_m2Lambda_SM(v, Mh2):
    m2 = Mh2/2
    Lambda = 2 * m2 / v**2
    return {'m2': m2, 'Lambda': Lambda}

def vMh2_to_m2Lambda(v, Mh2, C, scale_high):
    """Function to numerically determine the parameters of the Higgs potential
    given the physical Higgs VEV and mass."""
    if C['phi'] == 0 and C['phiBox'] == 0 and C['phiD'] == 0:
        return _vMh2_to_m2Lambda_SM(v, Mh2)
{'fraction_non_alphanumeric': 0.18209781605659797, 'fraction_numerical': 0.09750845893571208, 'mean_word_length': 2.8439716312056738, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7208311', 'n_tokens_mistral': 1575, 'n_tokens_neox': 1381, 'n_words': 371}