<commit_before><?php
class Author_model extends CI_Model {

    public function __construct() {
        $this->load->database();
    }

    public function add_author($image = "") {
    	$data = array(
        'name' => $this->input->post('name'),
        'image' => $image,
        'description' => $this->input->post('description')
    	);

    	return $this->db->insert('authors', $data);
    }
}<commit_msg>Add get authors to author model<commit_after><?php
class Author_model extends CI_Model {

    public function __construct() {
        $this->load->database();
    }

    public function add_author($image = "") {
    	$data = array(
        'name' => $this->input->post('name'),
        'image' => $image,
        'description' => $this->input->post('description')
    	);

    	return $this->db->insert('author', $data);
    }

    public function get_authors($image = "") {
    	$query = $this->db->get('author');
        return $query->result_array();
    }
}
{'fraction_non_alphanumeric': 0.18518518518518517, 'fraction_numerical': 0.0, 'mean_word_length': 2.7279693486590038, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 28, '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': '5610458', 'n_tokens_mistral': 303, 'n_tokens_neox': 294, 'n_words': 58}