<commit_before><?php defined('BASEPATH') OR exit('No direct script access allowed');
 
class Users extends CI_Controller{
	
	function __construct()
	{
		parent::__construct();
		$this->load->model('user','',TRUE);
	}
	
	public function index()
	{	
		if($this->session->userdata('logged_in'))
		{
			$session_data = $this->session->userdata('logged_in');
			$data['name'] = $this->user->getInfo($session_data['id']);
			$data['title'] = "Dashboard";
			$data['menu'] = $this->load->view('menu', NULL, TRUE);
			$data['menu'] = $this->load->view('menu', NULL, TRUE);
			$this->load->view('user', $data);
		}
		else
		{
			//If no session, redirect to login page
			redirect('login', 'refresh');
		}
		
	}
	
	public function new()
	{
		if($this->session->userdata('logged_in'))
		{
			$session_data = $this->session->userdata('logged_in');
			$data['name'] = $this->user->getInfo($session_data['id']);
			$data['title'] = "Dashboard";
			$data['menu'] = $this->load->view('menu', NULL, TRUE);
			$data['menu'] = $this->load->view('menu', NULL, TRUE);
			$this->load->view('user_new', $data);
		}
		else<commit_msg>Removing keywords<commit_after><?php defined('BASEPATH') OR exit('No direct script access allowed');
 
class Users extends CI_Controller{
	
	function __construct()
	{
		parent::__construct();
		$this->load->model('user','',TRUE);
	}
	
	public function index()
	{	
		if($this->session->userdata('logged_in'))
		{
			$session_data = $this->session->userdata('logged_in');
			$data['name'] = $this->user->getInfo($session_data['id']);
			$data['title'] = "Dashboard";
			$data['menu'] = $this->load->view('menu', NULL, TRUE);
			$data['menu'] = $this->load->view('menu', NULL, TRUE);
			$this->load->view('user', $data);
		}
		else
		{
			//If no session, redirect to login page
			redirect('login', 'refresh');
		}
		
	}
	
	public function newuser()
	{
		if($this->session->userdata('logged_in'))
		{
			$session_data = $this->session->userdata('logged_in');
			$data['name'] = $this->user->getInfo($session_data['id']);
			$data['title'] = "Dashboard";
			$data['menu'] = $this->load->view('menu', NULL, TRUE);
			$data['menu'] = $this->load->view('menu', NULL, TRUE);
			$this->load->view('user_new', $data);
		}
		else
		{
			//If no session, redirect to login page
			redirect('login', 'refresh');
		}
	}
	
	public function updateuser()
	{
		if($this->session->userdata('logged_in'))
		{
			$session_data = $this->session->userdata('logged_in');
			$data['name'] = $this->user->getInfo($session_data['id']);
			$data['title'] = "Dashboard";
			$data['menu'] = $this->load->view('menu', NULL, TRUE);
			$data['menu'] = $this->load->view('menu', NULL, TRUE);
			$this->load->view('user_new', $data);
		}
		else
{'fraction_non_alphanumeric': 0.2344726203601617, 'fraction_numerical': 0.0, 'mean_word_length': 4.444, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 67, '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': '4648092', 'n_tokens_mistral': 1076, 'n_tokens_neox': 958, 'n_words': 164}