<commit_before><?php
/**
* 
*/
class List_model extends CI_Model
{
	
	public function get_lists(){
		$query = $this->db->get('lists');
		return $query->result(); 	// WE USE RESULT TO RETURN ALL THE RECORDS
	}
	public function get_list($id){
		$query = $this->db->get('lists', array('id' => $id));
		return $query->row();	// WE USE ROW TO RETURN ONLY ONE RECORD
	}
	public function get_list_tasks($id, $completed){

	}
	public function create_list($data){
		$query = $this->db->insert('lists', $data);
		return $insert;
	}

}<commit_msg>get_list_data method added to the model<commit_after><?php
/**
* 
*/
class List_model extends CI_Model
{
	
	public function get_lists(){
		$query = $this->db->get('lists');
		return $query->result(); 	// WE USE RESULT TO RETURN ALL THE RECORDS
	}
	public function get_list($id){
		$query = $this->db->get('lists', array('id' => $id));
		return $query->row();	// WE USE ROW TO RETURN ONLY ONE RECORD
	}
	public function get_list_tasks($id, $completed){

	}
	public function create_list($data){
		$query = $this->db->insert('lists', $data);
		return $insert;
	}

	public function get_list_data($list_id){
		$query = $this->db->get('lists', array('id' => $list_id));
		return $query->row();
	}

}
{'fraction_non_alphanumeric': 0.18470301057770544, 'fraction_numerical': 0.0, 'mean_word_length': 4.256410256410256, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '2955319', 'n_tokens_mistral': 466, 'n_tokens_neox': 435, 'n_words': 112}