<commit_before><?php

class FreshRSS_error_Controller extends Minz_ActionController {
	public function indexAction() {
		switch (Minz_Request::param('code')) {
		case 403:
			$this->view->code = 'Error 403 - Forbidden';
			break;
		case 404:
			$this->view->code = 'Error 404 - Not found';
			break;
		case 500:
			$this->view->code = 'Error 500 - Internal Server Error';
			break;
		case 503:
			$this->view->code = 'Error 503 - Service Unavailable';
			break;
		default:
			$this->view->code = 'Error 404 - Not found';
		}

		$errors = Minz_Request::param('logs', array());
		$this->view->errorMessage = trim(implode($errors));
		if ($this->view->errorMessage == '') {
			switch(Minz_Request::param('code')) {
				case 403:
					$this->view->errorMessage = _t('forbidden_access');
					break;
				case 404:
				default:
					$this->view->errorMessage = _t('page_not_found');
					break;
			}
		}
<commit_msg>Coding style errorController<commit_after><?php

class FreshRSS_error_Controller extends Minz_ActionController {
	public function indexAction() {
		switch (Minz_Request::param('code')) {
		case 403:
			$this->view->code = 'Error 403 - Forbidden';
			break;
		case 404:
			$this->view->code = 'Error 404 - Not found';
			break;
		case 500:
			$this->view->code = 'Error 500 - Internal Server Error';
			break;
		case 503:
			$this->view->code = 'Error 503 - Service Unavailable';
			break;
		default:
			$this->view->code = 'Error 404 - Not found';
		}

		$errors = Minz_Request::param('logs', array());
		$this->view->errorMessage = trim(implode($errors));
		if ($this->view->errorMessage == '') {
			switch(Minz_Request::param('code')) {
			case 403:
				$this->view->errorMessage = _t('forbidden_access');
				break;
			case 404:
			default:
				$this->view->errorMessage = _t('page_not_found');
				break;
			}
		}

{'fraction_non_alphanumeric': 0.16630196936542668, 'fraction_numerical': 0.036105032822757115, 'mean_word_length': 3.527227722772277, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, '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': '7372589', 'n_tokens_mistral': 780, 'n_tokens_neox': 608, 'n_words': 136}