<commit_before><?php

/**
 * Created by PhpStorm.
 * User: <NAME>
 * Date: 3/31/2016
 * Time: 10:10 AM
 */
class Form_visualization extends CI_Controller
{

	public function __construct()
	{
		parent::__construct();
		$this->load->model(array(
			'Xform_model',
			'User_model',
			'Submission_model'
		));

		$this->form_validation->set_error_delimiters('<div class="text-danger">', '</div>');<commit_msg>Added a check if user is logged in on form visualization module<commit_after><?php

/**
 * Created by PhpStorm.
 * User: <NAME>
 * Date: 3/31/2016
 * Time: 10:10 AM
 */
class Form_visualization extends CI_Controller
{

	public function __construct()
	{
		parent::__construct();

		if (!$this->ion_auth->logged_in()) {
			// redirect them to the login page
			redirect('auth/login', 'refresh');
		}

		$this->load->model(array(
			'Xform_model',
			'User_model',
			'Submission_model'
		));

		$this->form_validation->set_error_delimiters('<div class="text-danger">', '</div>');
{'fraction_non_alphanumeric': 0.1698880976602238, 'fraction_numerical': 0.022380467955239063, 'mean_word_length': 4.290322580645161, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, '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': '925645', 'n_tokens_mistral': 390, 'n_tokens_neox': 337, 'n_words': 72}