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

class Home extends CI_Controller {

	/**
	 * This is Home page controller.
	 * Develope on 19th July'2016 by <NAME>
	 */
	public function index()
	{
		if(isset($this->session->userdata['UserID']))
		{
			redirect('/welcome', 'refresh');
		}else
		{
			$this->load->view('home');
		}
	}

	public function register()
	{
		/* Load the database model:
      	/application/models/Register.php */
    	$this->load->model('Register');

    	$result = $this->Register->RegisterUser();<commit_msg>Adding validations<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Home extends CI_Controller {

	/**
	 * This is Home page controller.
	 * Develope on 19th July'2016 by <NAME>
	 * Modified on 24th.
	 */
	public function index()
	{
		if(isset($this->session->userdata['UserID']))
		{
			redirect('/welcome', 'refresh');
		}else
		{
			$this->load->view('home');
		}
	}

	public function register()
	{
		/* Load the database model:
      	/application/models/Register.php */
    	$this->load->model('Register');

    	$result = $this->Register->RegisterUser();
{'fraction_non_alphanumeric': 0.16851063829787233, 'fraction_numerical': 0.011914893617021277, 'mean_word_length': 3.575875486381323, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5606852', 'n_tokens_mistral': 413, 'n_tokens_neox': 365, 'n_words': 87}