<commit_before><?php
class Art extends CI_Controller {
	public function __construct()
	{
		parent::__construct();
	}

	public function manage_art($err = null)
	{
		if (!isset($_SESSION['logged_in'])) redirect('/Homepage/index');
		$this->load->model('Art_model');
		$this->load->model('Gallery_model');
		$this->load->model('Tag_model');
		if (isset($err)) {
			$data['error'] = $err;
		} else {
			$data['error'] = ''; // so the view doesnt error
		}
		$data['tags'] = $this->Tag_model->get_tags();
		$data['arts'] = $this->Art_model->get_arts();
		$galleries = $this->Gallery_model->getGalleries();
		$this->load->view("templates/header", array("title"=>"Manage Art", "galleries"=>$galleries));
		$data['footer'] = $this->load->view("templates/footer", NULL, TRUE);
		$data['artUpload_form'] = $this->load->view("artUpload_form", $data, TRUE);
		$this->load->view("manageArt", $data);
	}

	public function upload_art()
	{
		ini_set('memory_limit', '64M');
		$this->load->model('Art_model');<commit_msg>Increases memory limit, post-size limit, and max-upload limit to 64mb<commit_after><?php
class Art extends CI_Controller {
	public function __construct()
	{
		parent::__construct();
	}

	public function manage_art($err = null)
	{
		if (!isset($_SESSION['logged_in'])) redirect('/Homepage/index');
		$this->load->model('Art_model');
		$this->load->model('Gallery_model');
		$this->load->model('Tag_model');
		if (isset($err)) {
			$data['error'] = $err;
		} else {
			$data['error'] = ''; // so the view doesnt error
		}
		$data['tags'] = $this->Tag_model->get_tags();
		$data['arts'] = $this->Art_model->get_arts();
		$galleries = $this->Gallery_model->getGalleries();
		$this->load->view("templates/header", array("title"=>"Manage Art", "galleries"=>$galleries));
		$data['footer'] = $this->load->view("templates/footer", NULL, TRUE);
		$data['artUpload_form'] = $this->load->view("artUpload_form", $data, TRUE);
		$this->load->view("manageArt", $data);
	}

	public function upload_art()
	{
		ini_set('memory_limit', '64M');
		ini_set('upload_max_filesize' ,'64M');
		ini_set('post_max_size', '64M');
		$this->load->model('Art_model');
{'fraction_non_alphanumeric': 0.2252336448598131, 'fraction_numerical': 0.004672897196261682, 'mean_word_length': 5.567484662576687, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 51, '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': '4816698', 'n_tokens_mistral': 821, 'n_tokens_neox': 753, 'n_words': 124}