<commit_before><?php

/**
 * Always returns true; ideal for demonstration so someone can just click the 'login' button.
 *  
 */
class Xerte_Authentication_Guest extends Xerte_Authentication_Abstract
{
    /* @var $_record array - contains the current user's details - expects keys like firstname, surname*/
    private $_record = array();


    public function getUsername() {
        return 'guest';
    }
    
    public function getFirstname()
    {
        return "Guest";
    }

    public function getSurname()
    {
        return "User"; 
    }

    public function check()
    {
        return true;
    }

    public function login($username, $password)
    {
       return true;
    }
    public function needsLogin() {
        return false;
    }

}
<commit_msg>changed guest to guest2 as discussed on the dev list e.g. demo.txt has used guest2 for about 2 years so this change is more relevant for those upgrading<commit_after><?php

/**
 * Always returns true; ideal for demonstration so someone can just click the 'login' button.
 *  
 */
class Xerte_Authentication_Guest extends Xerte_Authentication_Abstract
{
    /* @var $_record array - contains the current user's details - expects keys like firstname, surname*/
    private $_record = array();


    public function getUsername() {
        return 'guest2';
    }
    
    public function getFirstname()
    {
        return "Guest";
    }

    public function getSurname()
    {
        return "User"; 
    }

    public function check()
    {
        return true;
    }

    public function login($username, $password)
    {
       return true;
    }
    public function needsLogin() {
        return false;
    }

}

{'fraction_non_alphanumeric': 0.08698224852071006, 'fraction_numerical': 0.002366863905325444, 'mean_word_length': 2.416161616161616, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2350546', 'n_tokens_mistral': 477, 'n_tokens_neox': 451, 'n_words': 159}