<commit_before><?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of location_model
 *
 * @author indra
 */
class Notif_model extends CI_Model{
    //put your code here
    
    public function insert($ticket_id)
    {
        $data = array(
            'ticket_id' => $ticket_id
        );
        return $this->db->insert('notification',$data);
    }
    
    public function lookup()
    {
        //Sort Database in order ascending based on Location names
        $this->db->order_by('notification_id', 'asc'); 
        //Get database from table - Location
        $query = $this->db->get('notification',5);
        // return the query
        return $query;
    }
    
    public function findticket($id)
    {
        $this->db->where('ticket_id =', $id);
        $query   = $this->db->count_all_results('notification');
        return $query;
    }<commit_msg>Task #15 - Integrate Reserv with Freshdesk<commit_after><?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of location_model
 *
 * @author indra
 */
class Notif_model extends CI_Model{
    //put your code here
    
    public function insert($ticket_id)
    {
        $data = array(
            'ticket_id' => $ticket_id
        );
        return $this->db->insert('notification',$data);
    }
    
    public function lookup($time)
    {
        $this->db->where('time =', $time);
        $this->db->from('notification');
        $query = $this->db->get();
        // return the query
        return $query;
    }
    
    public function findticket($id)
    {
        $this->db->where('ticket_id =', $id);
        $query   = $this->db->count_all_results('notification');
        return $query;
    }
{'fraction_non_alphanumeric': 0.13015075376884422, 'fraction_numerical': 0.001507537688442211, 'mean_word_length': 2.312811980033278, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '2471576', 'n_tokens_mistral': 584, 'n_tokens_neox': 569, 'n_words': 160}