<commit_before><?php

function is_production($url)
{
  return strpos($url, '.staging.') === FALSE;
}

function trusona_custom_login($url, $allow_wp_form)
{
    $allow_wp_form = apply_filters('trusona_allow_wp_form', $allow_wp_form, $url);

    $data = '<div>';

    if ($allow_wp_form) {
        $data .= '<style type="text/css">form > p {display: none;} p#nav {display: none;}</style>';
    }

    $data .= '<div><a href="' . $url . '" alt="Login With Trusona" class="trusona-no-passwords-login-button">Login with Trusona</a></div>';

    if (isset($_GET['trusona-openid-error'])) {
        $err_code = $_GET['trusona-openid-error'];
        $message  = TrusonaOpenID::$ERR_MES[$err_code];

        $data .= trusona_error_message($message);
    }

    if ($allow_wp_form) {
        $data .= '<div style="text-align: center;"><br/><script>jQuery(document).ready(function() { jQuery(\'#login\').width(\'350px\').addClass(\'login_center\'); });</script>';
        $data .= '<a href="#" style="font-size:smaller;color:#c0c0c0;" onclick="jQuery(\'form > p\').toggle();this.blur();return false;">Toggle Classic Login</a></div><br/>';
    }

    $data .= '</div>';

    return $data;
}

function trusona_error_message($message)
{
    $str = '<div style="text-align:center;margin-top:2em;color:#907878;background-color:#f1e8e5;border:1px solid darkgray;width:100%;border-radius:3px;font-weight:bolder;">';
    $str .= '<p style="line-height:1.6em;">' . $message . '</p></div><br/>';<commit_msg>use login with trusona css<commit_after><?php

function is_production($url)
{
  return strpos($url, '.staging.') === FALSE;
}

function trusona_custom_login($url, $allow_wp_form)
{
    $allow_wp_form = apply_filters('trusona_allow_wp_form', $allow_wp_form, $url);

    $data = '<div>';

    if ($allow_wp_form) {
        $data .= '<style type="text/css">form > p {display: none;} p#nav {display: none;}</style>';
    }

    $data .= '<div><a href="' . $url . '" alt="Login With Trusona" class="trusona-employee-button">Login with Trusona</a></div>';

    if (isset($_GET['trusona-openid-error'])) {
        $err_code = $_GET['trusona-openid-error'];
        $message  = TrusonaOpenID::$ERR_MES[$err_code];

        $data .= trusona_error_message($message);
    }

    if ($allow_wp_form) {
        $data .= '<div style="text-align: center;"><br/><script>jQuery(document).ready(function() { jQuery(\'#login\').width(\'350px\').addClass(\'login_center\'); });</script>';
        $data .= '<a href="#" style="font-size:smaller;color:#c0c0c0;" onclick="jQuery(\'form > p\').toggle();this.blur();return false;">Toggle Classic Login</a></div><br/>';
    }

    $data .= '</div>';

    return $data;
}

function trusona_error_message($message)
{
    $str = '<div style="text-align:center;margin-top:2em;color:#907878;background-color:#f1e8e5;border:1px solid darkgray;width:100%;border-radius:3px;font-weight:bolder;">';
    $str .= '<p style="line-height:1.6em;">' . $message . '</p></div><br/>';
{'fraction_non_alphanumeric': 0.22505878401074908, 'fraction_numerical': 0.015451797111185758, 'mean_word_length': 4.308377896613191, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 49, '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': '7564145', 'n_tokens_mistral': 1105, 'n_tokens_neox': 1057, 'n_words': 159}