<commit_before><?php

class newpostcont extends CI_Controller{

	public function __construct(){

		parent::__construct();

		$this->load->library('session');

		$this->load->helper('url');

		$this->load->model('newpostmodel');
	}

	public function index(){

		$this->write();
	}

	public function write(){

		$this->load->helper('form');
		$this->load->library('form_validation');

		$this->load->view('templates/header.html');
		$this->load->view('newpost/newpost.php');
		$this->load->view('templates/footer.html');
	}

	public function addpost(){

		echo 'We will talk with the model now.';

		$this->newpostmodel->addNewPost();

	}
}<commit_msg>load the library only when required<commit_after><?php

class newpostcont extends CI_Controller{

	public function __construct(){

		parent::__construct();

		$this->load->library('session');

		$this->load->helper('url');

		$this->load->model('newpostmodel');
	}

	public function index(){

		$this->write();
	}

	public function write(){

		$this->load->helper('form');
		$this->load->library('form_validation');

		$this->load->view('templates/header.html');
		$this->load->view('newpost/newpost.php');
		$this->load->view('templates/footer.html');
	}

	public function addpost(){
		$this->load->model('newpostmodel');
		
		echo 'We will talk with the model now.';

		$this->newpostmodel->addNewPost();

	}
}
{'fraction_non_alphanumeric': 0.2011747430249633, 'fraction_numerical': 0.0, 'mean_word_length': 4.702928870292887, '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': '6632064', 'n_tokens_mistral': 488, 'n_tokens_neox': 431, 'n_words': 78}