<commit_before><?php

Class Email extends CI_Controller
{
    function __construct()
    {
        parent::__construct();
    }

    function index()
    {
        $this->load->view('newsletter');
    }

    function send()
    {
        echo "hello";
        $this->load->library('email');
        $this->email->set_newline("\r\n");

        $this->email->from('<EMAIL>', '<NAME>');
        $this->email->to('<EMAIL>');
        $this->email->subject('this is a test');
        $this->email->message('working');

        $path = $this->config->item('server_root');
        $file = $path .'/news-letter/attachements/yourinfo.txt';

        $this->email->attach($file);

        if($this->email->send())
        {
            echo "success";
        }

        else {
            show_error($this->email->print_debugger());
        }
    }
}<commit_msg>sent button<commit_after><?php

Class Email extends CI_Controller
{
    function __construct()
    {
        parent::__construct();
    }

    function index()
    {
        $this->load->view('newsletter');
    }

    function send()
    {
        echo "hello"; die();
        $this->load->library('email');
        $this->email->set_newline("\r\n");

        $this->email->from('<EMAIL>', '<NAME>');
        $this->email->to('<EMAIL>');
        $this->email->subject('this is a test');
        $this->email->message('working');

        $path = $this->config->item('server_root');
        $file = $path .'/news-letter/attachements/yourinfo.txt';

        $this->email->attach($file);

        if($this->email->send())
        {
            echo "success";
        }

        else {
            show_error($this->email->print_debugger());
        }
    }
}
{'fraction_non_alphanumeric': 0.1974223784417106, 'fraction_numerical': 0.0, 'mean_word_length': 2.0017574692442883, 'pattern_counts': {'":': 0, '<': 11, '<?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': '6417472', 'n_tokens_mistral': 530, 'n_tokens_neox': 514, 'n_words': 74}