<commit_before><?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * SZone Application Controller Class
 *
 * This class object extends from the CodeIgniter super class CI_Controller.
 *
 * @package		SZone
 * @subpackage	application
 * @category	controllers
 * @author		Code Wall-E Studio
 * @link		http://codewalle.com
 */
class Download extends CI_Controller {

    protected $user = array();

    function __construct()
    {
        parent::__construct();
        $this->set_user();
    }

    protected function set_user()
    {
        $this->user['uid'] = $this->session->userdata('uid');
        if (!empty($this->user['uid']))
        {<commit_msg>download fix<commit_after><?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * SZone Application Controller Class
 *
 * This class object extends from the CodeIgniter super class CI_Controller.
 *
 * @package		SZone
 * @subpackage	application
 * @category	controllers
 * @author		Code Wall-E Studio
 * @link		http://codewalle.com
 */
class Download extends CI_Controller {

    protected $user = array();

    function __construct()
    {
        if(!isset($_SESSION)){
            session_start();
        }          
        parent::__construct();
        $this->set_user();
    }

    protected function set_user()
    {
        //$this->user['uid'] = $this->session->userdata('uid');
        if(isset($_SESSION['uid'])){
            $this->user['uid'] = (int) $_SESSION['uid'];//intval($this->session->userdata('uid'));
        }else{
            $this->user['uid'] = 0;
            redirect('/login/nologin');
        }        
        if (!empty($this->user['uid']))
        {
{'fraction_non_alphanumeric': 0.15665488810365136, 'fraction_numerical': 0.0005889281507656066, 'mean_word_length': 2.6934782608695653, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4874584', 'n_tokens_mistral': 493, 'n_tokens_neox': 483, 'n_words': 115}