<commit_before><?php

class User_m extends CI_Model {

    public function authenticate($userName,$password) {
        $query = $this->db->query(" SELECT * FROM user u
                                    WHERE u.name='$userName'
                                    AND u.password='$password'");
        return $query->result();
    }
    public function authenticateAsAnonymous($userName) {
        $query = $this->db->query(" SELECT * FROM user u
                                    WHERE u.name='$userName'
                                    ");
        return $query->result();
    }

}<commit_msg>adding  show user name option user model<commit_after><?php

class User_m extends CI_Model {

    public function authenticate($userName,$password) {
        $query = $this->db->query(" SELECT * FROM user u
                                    WHERE u.name='$userName'
                                    AND u.password='$password'");
        return $query->result();
    }
    public function authenticateAsAnonymous($userName) {
        $query = $this->db->query(" SELECT * FROM user u
                                    WHERE u.name='$userName'
                                    ");
        return $query->result();
    }
    
    function getUserName($userid){
        $query = $this->db->query(" SELECT name FROM user
                                    WHERE id=$userid
                                    ");
        return  $query->result_array();
    }

}
{'fraction_non_alphanumeric': 0.11512261580381472, 'fraction_numerical': 0.0, 'mean_word_length': 1.3617363344051447, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4768548', 'n_tokens_mistral': 377, 'n_tokens_neox': 352, 'n_words': 84}