<commit_before><?php

class FreshRSS_entry_Controller extends Minz_ActionController {
	public function firstAction () {
		if (!$this->view->loginOk) {
			Minz_Error::error (
				403,
				array ('error' => array (Minz_Translate::t ('access_denied')))
			);
		}

		$this->params = array ();
		$output = Minz_Request::param('output', '');
		if (($output != '') && ($this->view->conf->view_mode !== $output)) {
			$this->params['output'] = $output;
		}

		$this->redirect = false;
		$ajax = Minz_Request::param ('ajax');
		if ($ajax) {
			$this->view->_useLayout (false);
		}
	}

	public function lastAction () {
		$ajax = Minz_Request::param ('ajax');
		if (!$ajax && $this->redirect) {
			Minz_Request::forward (array (
				'c' => 'index',
				'a' => 'index',
				'params' => $this->params
			), true);
		} else {
			Minz_Request::_param ('ajax');
		}
	}

	public function readAction () {
		$this->redirect = true;

		$id = Minz_Request::param ('id');
		$get = Minz_Request::param ('get');
		$nextGet = Minz_Request::param ('nextGet', $get); 
		$idMax = Minz_Request::param ('idMax', 0);

		$entryDAO = FreshRSS_Factory::createEntryDao();
		if ($id == false) {
			if (!$get) {
				$entryDAO->markReadEntries ($idMax);
			} else {<commit_msg>Mark many as read must be a POST action<commit_after><?php

class FreshRSS_entry_Controller extends Minz_ActionController {
	public function firstAction () {
		if (!$this->view->loginOk) {
			Minz_Error::error (
				403,
				array ('error' => array (Minz_Translate::t ('access_denied')))
			);
		}

		$this->params = array ();
		$output = Minz_Request::param('output', '');
		if (($output != '') && ($this->view->conf->view_mode !== $output)) {
			$this->params['output'] = $output;
		}

		$this->redirect = false;
		$ajax = Minz_Request::param ('ajax');
		if ($ajax) {
			$this->view->_useLayout (false);
		}
	}

	public function lastAction () {
		$ajax = Minz_Request::param ('ajax');
		if (!$ajax && $this->redirect) {
			Minz_Request::forward (array (
				'c' => 'index',
				'a' => 'index',
				'params' => $this->params
			), true);
		} else {
			Minz_Request::_param ('ajax');
		}
	}

	public function readAction () {
		$this->redirect = true;

		$id = Minz_Request::param ('id');
		$get = Minz_Request::param ('get');
		$nextGet = Minz_Request::param ('nextGet', $get); 
		$idMax = Minz_Request::param ('idMax', 0);

		$entryDAO = FreshRSS_Factory::createEntryDao();
		if ($id == false) {
			if (!Minz_Request::isPost()) {
				return;
			}

			if (!$get) {
				$entryDAO->markReadEntries ($idMax);
			} else {
{'fraction_non_alphanumeric': 0.20579029733959311, 'fraction_numerical': 0.003129890453834116, 'mean_word_length': 3.7616387337057726, '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': '2213501', 'n_tokens_mistral': 1042, 'n_tokens_neox': 910, 'n_words': 183}