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

class Profile extends My_Controller {
	public function __construct()
	{	
		parent::__construct();
		$this->load->model('Anggota_Model');
		$this->load->model('Kontak_model');
	}

	public function index()
	{
		redirect('profile/view');
	}

	public function view($nim = null)
	{
		if ($nim == null){
			$this->load->view('errors');
		}

		else {
			$data['anggota'] = $this->Anggota_Model->get_id($nim);
			$data['prodi']['D3-TI'] = "DIII-Teknik Informatika";
			$data['prodi']['D4-TI'] = "Sarjana Terapan Teknik Informatika";

			$data['kontak'] = $this->Kontak_model->get_id($nim);
			$ui['navtab']['page'] = 'overview';
			$ui['navtab']['nim'] = $nim;

			$this->load->view('guest/header');
			$this->load->view('guest/profile',$data);
			$this->load->view('guest/nav_riwayat',$ui['navtab']);
			$this->load->view('guest/overview');
			$this->load->view('guest/footer');
		}
		
	}

}
<commit_msg>add id<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Profile extends My_Controller {
	public function __construct()
	{	
		parent::__construct();
		$this->load->model('Anggota_Model');
		$this->load->model('Kontak_model');
	}

	public function index()
	{
		redirect('profile/view');
	}

	public function view($nim = null)
	{
		if ($nim == null){
			$this->load->view('errors');
		}

		else {
			$data['anggota'] = $this->Anggota_Model->get_nim($nim);
			$id = $data['anggota']->id_anggota;
			$data['kontak'] = $this->Kontak_model->get_id($id);
			$ui['navtab']['page'] = 'overview';
			$ui['navtab']['nim'] = $nim;

			$this->load->view('guest/header');
			$this->load->view('guest/profile',$data);
			$this->load->view('guest/nav_riwayat',$ui['navtab']);
			$this->load->view('guest/overview');
			$this->load->view('guest/footer');
		}
		
	}

}

{'fraction_non_alphanumeric': 0.2321237993596585, 'fraction_numerical': 0.0010672358591248667, 'mean_word_length': 4.63063063063063, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 44, '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': '6869321', 'n_tokens_mistral': 783, 'n_tokens_neox': 716, 'n_words': 99}