<commit_before><?php

class PagesController extends AppController {

  protected $helpers = array('Html', 'Form', 'Pagination', 'Backend');

  protected $modules = array('Editors');

  protected $models = array('Page');

  public function view($page) {
    $this->page = $this->Page->find($page);
    if (!$this->page
      or !($this->page->published
        or $this->Auth->hasPermission('backend.pages.viewDraft'))) {
      return $this->notFound();
    }
    $this->title = $this->page->title;
    return $this->render();
  }

}<commit_msg>Fix pages controller<commit_after><?php

class PagesController extends AppController {

  protected $models = array('Page');

  public function view($page) {
    $this->page = $this->Page->find($page);
    if (!$this->page
      or !($this->page->published
        or $this->Auth->hasPermission('backend.pages.viewDraft'))) {
      return $this->notFound();
    }
    $this->title = $this->page->title;
    return $this->render();
  }

}
{'fraction_non_alphanumeric': 0.18858307849133538, 'fraction_numerical': 0.0, 'mean_word_length': 3.5462962962962963, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '1539223', 'n_tokens_mistral': 304, 'n_tokens_neox': 301, 'n_words': 61}