<commit_before><?php

namespace Application\Controller;

/**
 * Install controller
 * 
 * @author <NAME> <<EMAIL>>
 * @copyright (c) 2013, <NAME>
 * @license http://opensource.org/licenses/MIT
 */
class InstallController {
	
	/**
	 * Index action
	 * @return array
	 */
	public function indexAction() {
		$this->_checkConfigFile();
		$view = array(
			'permission' => $this->_checkRights(),
			'error' => false,
			'success' => false
		);
		$view['permission'] = $this->_checkRights();
		
		$postParams = filter_input_array(INPUT_POST);
		if(!is_null($postParams)) {
			$path = realpath($postParams['apacheErrorLog']);
			$view['error'] = is_readable($path);
			if($view['error'] === false) {
				$handle = fopen(APPLICATION_PATH . '/Application/config/app.ini', "w");
				fwrite($handle, '[paths]' . "\n");
				fwrite($handle, 'apache.error="' . $path . '"' . "\n");
				fclose($handle);
				<commit_msg>fix install bug<commit_after><?php

namespace Application\Controller;

/**
 * Install controller
 * 
 * @author <NAME> <<EMAIL>>
 * @copyright (c) 2013, <NAME>
 * @license http://opensource.org/licenses/MIT
 */
class InstallController {
	
	/**
	 * Index action
	 * @return array
	 */
	public function indexAction() {
		$this->_checkConfigFile();
		$view = array(
			'permission' => $this->_checkRights(),
			'error' => false,
			'success' => false
		);
		$view['permission'] = $this->_checkRights();
		
		$postParams = filter_input_array(INPUT_POST);
		if(!is_null($postParams)) {
			$path = realpath($postParams['apacheErrorLog']);
			$view['error'] = !is_readable($path);
			if($view['error'] === false) {
				$handle = fopen(APPLICATION_PATH . '/Application/config/app.ini', "w");
				fwrite($handle, '[paths]' . "\n");
				fwrite($handle, 'apache.error="' . $path . '"' . "\n");
				fclose($handle);
				
{'fraction_non_alphanumeric': 0.20573634859349146, 'fraction_numerical': 0.00441257584114727, 'mean_word_length': 3.8894878706199463, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 23, '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': '6429169', 'n_tokens_mistral': 688, 'n_tokens_neox': 590, 'n_words': 112}