<commit_before><?php

require_once dirname(__FILE__).'/../config.php';
Config::init();

function display_home() {

    if (has_post('disconnect')) {
        disconnection();

        if (has_post('u') && $_POST['u'][0] == '/') {
            $u = explode('?', get_string('u', 'post'));
            redirect_to($u[0], array('status' => HTTP_SEE_OTHER));
        }
    }

    $tpl_name = (is_connected() ? 'connected_' : '').'home.html';
<commit_msg>micro-optimization.<commit_after><?php

require_once dirname(__FILE__).'/../config.php';
Config::init();

function display_home() {

    if (has_post('disconnect')) {
        disconnection();

        if (has_post('u') && $_POST['u'][0] == '/') {
            $u = explode('?', get_string('u', 'post'));
            redirect_to($u[0], array('status' => HTTP_SEE_OTHER));
        }
    }

    $tpl_name = is_connected() ? 'connected_home.html' : 'home.html';

{'fraction_non_alphanumeric': 0.22566371681415928, 'fraction_numerical': 0.004424778761061947, 'mean_word_length': 3.0582959641255605, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '470036', 'n_tokens_mistral': 313, 'n_tokens_neox': 307, 'n_words': 46}