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

class Control extends CI_Controller {

	public function __construct() {
		parent::__construct();
		$this->load->helper('form');
		$this->load->helper('url');
		$this->load->library('session');
		$this->load->library('form_validation');
	}

	public function index(){
		//---------------------------------------------------For the love of god do not forget to route this page!

		if(isset($_POST['beamSword'])){ 
			$screwAttack = $_FILES['asdf']['tmp_name'];
			$rabbitHood = basename($_FILES['asdf']['name']);
			$franklinBadge = "Img";
			move_uploaded_file($screwAttack, $franklinBadge."/".$rabbitHood);
			$superSpicyCurry = 1;
			$data2['superSpicyCurry'] = $rabbitHood;

			$dtitle = $this->input->post('ti');
			$ddescription = $this->input->post('descr');
			$dmedia = $this->input->post('medi');

			$this->load->model('model2');
			$did = $this->model2->getuser();
			$dbdata = array(
				'userid' => $did['userid'],
				'source' => "http://localhost:8888/CI/Img/".$rabbitHood,
				'title' => $dtitle,
				'desc' => $ddescription,
				'media' => $dmedia
			);
			
	        $this->model2->insertinto($dbdata);

			$this->load->view('header');
			$this->load->view('account', $data2);
			$this->load->view('footer'); 

		}elseif (isset($_POST['rincrud'])) {
			
			
			
		}else{
			$this->load->view('header');
			$this->load->view('account');
			$this->load->view('footer'); 
		}
		
	}



	

}<commit_msg>prepping for update model loading<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Control extends CI_Controller {

	public function __construct() {
		parent::__construct();
		$this->load->helper('form');
		$this->load->helper('url');
		$this->load->library('session');
		$this->load->library('form_validation');
	}

	public function index(){
		//---------------------------------------------------For the love of god do not forget to route this page!

		if(isset($_POST['beamSword'])){ 
			$screwAttack = $_FILES['asdf']['tmp_name'];
			$rabbitHood = basename($_FILES['asdf']['name']);
			$franklinBadge = "Img";
			move_uploaded_file($screwAttack, $franklinBadge."/".$rabbitHood);
			$superSpicyCurry = 1;
			$data2['superSpicyCurry'] = $rabbitHood;

			$dtitle = $this->input->post('ti');
			$ddescription = $this->input->post('descr');
			$dmedia = $this->input->post('medi');

			$this->load->model('model2');
			$did = $this->model2->getuser();
			$dbdata = array(
				'userid' => $did['userid'],
				'source' => "http://localhost:8888/CI/Img/".$rabbitHood,
				'title' => $dtitle,
				'desc' => $ddescription,
				'media' => $dmedia
			);
			
	        $this->model2->insertinto($dbdata);

			$this->load->view('header');
			$this->load->view('account', $data2);
			$this->load->view('footer'); 

		}elseif (isset($_POST['rincrud'])) {
			
			$newinfo = array(
				'title' => $ntitle,
				'desc' => $ndescription,
				'media' => $nmedia
			);
			$this->model2->update($newinfo);
			$data3 = $this->model2->getinf();

			$this->load->view('header');
			$this->load->view('account', $data3);
			$this->load->view('footer');

		}else{
			$data3 = $this->model2->getinf();
			$this->load->view('header');
			$this->load->view('account', $data3);
			$this->load->view('footer'); 
		}
		
	}



	

}
{'fraction_non_alphanumeric': 0.2507489514679449, 'fraction_numerical': 0.008088675853804673, 'mean_word_length': 3.4166666666666665, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 92, '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': '505265', 'n_tokens_mistral': 1368, 'n_tokens_neox': 1149, 'n_words': 182}