<commit_before><?php

class CM_RequestHandler_Page extends CM_RequestHandler_Abstract {

	public function __construct($request, $siteId = null) {
		parent::__construct($request, $siteId);
	}

	/**
	 * @return string html code of page
	 */
	public function process() {

		try {
			$this->_setRequest($this->getSite()->rewrite($this->_request));

			$page = CM_Page_Abstract::factory($this->getRequest());
			$page->prepare($this);
			$html = $this->getRender()->render($page);
		} catch (CM_Exception_Nonexistent $e) {
			$this->_setRequest(new CM_Request_Get('/error/not-found', $this->getRequest()->getHeaders()));
			$page = CM_Page_Abstract::factory($this->getRequest());
			$page->prepare($this);
			$html = $this->getRender()->render($page);
		} catch (CM_Exception_InvalidParam $e) {
			$this->_setRequest(new CM_Request_Get('/error/not-found', $this->getRequest()->getHeaders()));
			$page = CM_Page_Abstract::factory($this->getRequest());
			$page->prepare($this);
			$html = $this->getRender()->render($page);
		} catch (CM_Exception_AuthRequired $e) {<commit_msg>t6: Cleanup constructor<commit_after><?php

class CM_RequestHandler_Page extends CM_RequestHandler_Abstract {

	/**
	 * @return string html code of page
	 */
	public function process() {

		try {
			$this->_setRequest($this->getSite()->rewrite($this->_request));
			$page = CM_Page_Abstract::factory($this->getRequest());
			$page->prepare($this);
			$html = $this->getRender()->render($page);
		} catch (CM_Exception_Nonexistent $e) {
			$this->_setRequest(new CM_Request_Get('/error/not-found', $this->getRequest()->getHeaders()));
			$page = CM_Page_Abstract::factory($this->getRequest());
			$page->prepare($this);
			$html = $this->getRender()->render($page);
		} catch (CM_Exception_InvalidParam $e) {
			$this->_setRequest(new CM_Request_Get('/error/not-found', $this->getRequest()->getHeaders()));
			$page = CM_Page_Abstract::factory($this->getRequest());
			$page->prepare($this);
			$html = $this->getRender()->render($page);
		} catch (CM_Exception_AuthRequired $e) {
{'fraction_non_alphanumeric': 0.19541910331384016, 'fraction_numerical': 0.0004873294346978557, 'mean_word_length': 5.601286173633441, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 47, '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': '3811594', 'n_tokens_mistral': 711, 'n_tokens_neox': 645, 'n_words': 101}