<commit_before><?php
class db_dcs_log extends CI_Model{
	function get_all(){
		$q = $this->db->get('dcs_log');
		return $q->result();
	}
	
	function get_date(){
		$this->db->distinct();
		$this->db->select('date(time) as date');
		$this->db->order_by('time', 'desc');
		$q = $this->db->get('dcs_log');
		return $q->result();
	}
	
	function get_date_detail($param){
		$this->db->where('date(time)', date('Y-m-d', strtotime($param)));
		$this->db->order_by('time', 'desc');
		$q = $this->db->get('dcs_log');
		return $q->result();
	}
	<commit_msg>Add time sorting from db<commit_after><?php
class db_dcs_log extends CI_Model{
	function get_all(){
		$this->db->order_by('time', 'desc');
		$q = $this->db->get('dcs_log');
		return $q->result();
	}
	
	function get_date(){
		$this->db->distinct();
		$this->db->select('date(time) as date');
		$this->db->order_by('time', 'desc');
		$q = $this->db->get('dcs_log');
		return $q->result();
	}
	
	function get_date_detail($param){
		$this->db->where('date(time)', date('Y-m-d', strtotime($param)));
		$this->db->order_by('time', 'desc');
		$q = $this->db->get('dcs_log');
		return $q->result();
	}
	
{'fraction_non_alphanumeric': 0.26052631578947366, 'fraction_numerical': 0.0, 'mean_word_length': 4.733668341708543, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '6429173', 'n_tokens_mistral': 491, 'n_tokens_neox': 457, 'n_words': 74}