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

class User extends CI_Controller {

	function __construct()
	{
		parent:: __construct();
		$this->load->model('mod_user');
	}

	public function index()
	{
		{
			if ($this->session->userdata('level') == 'pengelola')
			$data['record']= $this->mod_user->select_all()->result();
			$this->load->view('pengelola/user',$data);
		}
		else
		{
			redirect('home');
		}
	}

	function post()
	{
		if ($this->session->userdata('level') == 'pengelola') {
				if (isset($_POST['submit'])) {
						$this->mod_user->save();
						redirect('pengelola/user');
				}else {
					$this->load->view('pengelola/tambah-user');
				}
		}
		else
		{
			redirect('home');<commit_msg>fix user<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');

class User extends CI_Controller {

	function __construct()
	{
		parent:: __construct();
		$this->load->model('mod_user');
	}

	public function index()
	{
		if ($this->session->userdata('level') == 'pengelola') {
			$data['record']= $this->mod_user->select_all()->result();
			$this->load->view('pengelola/user',$data);
		}
		else
		{
			redirect('home');
		}
	}

	function post()
	{
		if ($this->session->userdata('level') == 'pengelola') {
				if (isset($_POST['submit'])) {
						$this->mod_user->save();
						redirect('pengelola/user');
				}else {
					$this->load->view('pengelola/tambah-user');
				}
		}
		else
		{
			redirect('home');
{'fraction_non_alphanumeric': 0.21322537112010798, 'fraction_numerical': 0.0, 'mean_word_length': 3.7993527508090614, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '7138587', 'n_tokens_mistral': 620, 'n_tokens_neox': 527, 'n_words': 82}