<commit_before><?php
/**
 * Created by PhpStorm.
 * User: Adeyeni
 * Date: 05/03/14
 * Time: 12:36
 */

class Collate_Model extends CI_Model
{
    public function __construct()
    {
        parent::__construct();
        $this->load->database();

    }

    public function search( $queryData )
    {
        $this->db->where('studentStatus', $queryData['studentStatus'] );
        $result = $this->db->get( 'persons' )->row_array();

        return $result;
    }

    public function getOne( $type )
    {
        $this->db->select( 'p.username, p.forename1, eq.qualificationType, eq.result, pq.*' );
        $this->db->from( 'persons as p' );
        $this->db->join( 'educational_qualifications as eq', 'eq.Persons_idUser = p.idUser', 'left' );
        $this->db->join( 'professional_qualifications as pq', 'pq.Persons_idUser = p.idUser', 'left' );
        $this->db->where( 'eq.qualificationType', 'bsc' );
        $this->db->where( 'pq.qualificationName', 'agile' );
        $result = $this->db->get()->result_array();

        /*$query = $this->db->query('SELECT Persons_idUser FROM educational_qualifications WHERE qualificationType = "bsc"');
        return $query->result();*/

        return $result;
    }
}<commit_msg>no needed parameter<commit_after><?php
/**
 * Created by PhpStorm.
 * User: Adeyeni
 * Date: 05/03/14
 * Time: 12:36
 */

class Collate_Model extends CI_Model
{
    public function __construct()
    {
        parent::__construct();
        $this->load->database();

    }

    public function search( $queryData )
    {
        $this->db->where('studentStatus', $queryData['studentStatus'] );
        $result = $this->db->get( 'persons' )->row_array();

        return $result;
    }

    public function getOne()
    {
        $this->db->select( 'p.username, p.forename1, eq.qualificationType, eq.result, pq.*' );
        $this->db->from( 'persons as p' );
        $this->db->join( 'educational_qualifications as eq', 'eq.Persons_idUser = p.idUser', 'left' );
        $this->db->join( 'professional_qualifications as pq', 'pq.Persons_idUser = p.idUser', 'left' );
        $this->db->where( 'eq.qualificationType', 'bsc' );
        $this->db->where( 'pq.qualificationName', 'agile' );
        $result = $this->db->get()->result_array();

        /*$query = $this->db->query('SELECT Persons_idUser FROM educational_qualifications WHERE qualificationType = "bsc"');
        return $query->result();*/

        return $result;
    }
}
{'fraction_non_alphanumeric': 0.17904993909866018, 'fraction_numerical': 0.008932196508323184, 'mean_word_length': 2.868131868131868, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 53, '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': '1512182', 'n_tokens_mistral': 836, 'n_tokens_neox': 796, 'n_words': 159}