<commit_before><?php
class UploadsController extends OlogAppController {

   	var $name = 'Uploads';
	var $uses = array();
	

	
	function index() {
		$id = $this->params['named']['id'];
		$file = $this->params['named']['file'];
		$this->autoRender = false;
		App::import('Vendor','olog.FileUpload',array('file'=>'FileUpload'.DS.'upload.php'));
		App::import('Component', 'CakeSession');
		
		$session = new CakeSession();
		$auth = $session->read('Log');<commit_msg>added index as an allowed action for the upload controller<commit_after><?php
class UploadsController extends OlogAppController {

   	var $name = 'Uploads';
	var $uses = array();

	function beforeFilter() {
		parent::beforeFilter();
		$this->LogAuth->allowedActions = array('index');
	}
	
	function index() {
		$id = $this->params['named']['id'];
		$file = $this->params['named']['file'];
		$this->autoRender = false;
		App::import('Vendor','olog.FileUpload',array('file'=>'FileUpload'.DS.'upload.php'));
		App::import('Component', 'CakeSession');
		
		$session = new CakeSession();
		$auth = $session->read('Log');
{'fraction_non_alphanumeric': 0.20702402957486138, 'fraction_numerical': 0.0, 'mean_word_length': 5.446428571428571, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '3949334', 'n_tokens_mistral': 366, 'n_tokens_neox': 337, 'n_words': 67}