<commit_before><?php defined('BASEPATH') OR exit('No direct script access allowed');

class Cron extends CI_Controller {

    public function __construct () 
    {
        parent::__construct(); 

        if (!$this->input->is_cli_request()) {
            exit('Unathorized Request.');
        }
    }

    public function create_hashes () 
    {            
        set_time_limit(300); // kill after 5 minutes 
        $this->load->library('Easol_Generic_L');

        $students = $this->db->query("SELECT ElectronicMailAddress FROM edfi.StudentElectronicMail")->result();
        foreach ($students as $student)
        {
            $email  = $student->ElectronicMailAddress;
            $hash   = $this->easol_generic_l->encrypt_email($email);

            $exists = $this->db->select("COUNT(*)")
            ->from('easol.EmailLookup')
            ->where('email', $email)
            ->where('HashedEmail', $hash) 
            ->count_all_results();

            if ($exists === 0)
                $this->db->insert('easol.EmailLookup', array('email' => $email, 'HashedEmail' => $hash));
        }
    }        
<commit_msg>Increased time limit to 15minutes for cron call<commit_after><?php defined('BASEPATH') OR exit('No direct script access allowed');

class Cron extends CI_Controller {

    public function __construct () 
    {
        parent::__construct(); 

        if (!$this->input->is_cli_request()) {
            exit('Unathorized Request.');
        }
    }

    public function create_hashes () 
    {            
        set_time_limit(900); // kill after 15 minutes 
        $this->load->library('Easol_Generic_L');

        $students = $this->db->query("SELECT ElectronicMailAddress FROM edfi.StudentElectronicMail")->result();
        foreach ($students as $student)
        {
            $email  = $student->ElectronicMailAddress;
            $hash   = $this->easol_generic_l->encrypt_email($email);

            $exists = $this->db->select("COUNT(*)")
            ->from('easol.EmailLookup')
            ->where('email', $email)
            ->where('HashedEmail', $hash) 
            ->count_all_results();

            if ($exists === 0)
                $this->db->insert('easol.EmailLookup', array('email' => $email, 'HashedEmail' => $hash));
        }
    }        

{'fraction_non_alphanumeric': 0.15150195907705702, 'fraction_numerical': 0.0056595559425337396, 'mean_word_length': 2.191666666666667, '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': '3495408', 'n_tokens_mistral': 684, 'n_tokens_neox': 631, 'n_words': 123}