<commit_before><?php

final class InternalPage implements Page, Linkable {
    private $_header;
    private $_title;
    private $_filename;
    private $_content;
    private $_link;
    private $_strapline;

    public function __construct($title, $filename, $content, $strapline = '') {
        $this->_header = new Header();
        $this->_title = $title;
        $this->_filename = $filename;
        $this->_content = $content;
        $this->_strapline = $strapline;
    }

    public function filename() {
        return $this->_filename;
    }

    public function title() {
        return $this->_title;
    }

    public function href($classes = '') {
        return Link::internal($this->_title, $this->_filename)->withClasses($classes);
    }

    private function _renderContent() {
        $this->_content->render($this);
    }

    public function render(Navigation $navigation) {
        require 'template/page.phtml';
    }

    public function strapline() {
        return $this->_strapline;
    }<commit_msg>Add PageContent interface<commit_after><?php

final class InternalPage implements Page, Linkable {
    private $_header;
    private $_title;
    private $_filename;
    private $_content;
    private $_strapline;

    public function __construct($title, $filename, PageContent $content, $strapline = '') {
        $this->_header = new Header();
        $this->_title = $title;
        $this->_filename = $filename;
        $this->_content = $content;
        $this->_strapline = $strapline;
    }

    public function filename() {
        return $this->_filename;
    }

    public function title() {
        return $this->_title;
    }

    public function href($classes = '') {
        return Link::internal($this->_title, $this->_filename)->withClasses($classes);
    }

    private function _renderContent() {
        $this->_content->render($this);
    }

    public function render(Navigation $navigation) {
        require 'template/page.phtml';
    }

    public function strapline() {
        return $this->_strapline;
    }
{'fraction_non_alphanumeric': 0.1308139534883721, 'fraction_numerical': 0.0, 'mean_word_length': 2.6875, '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': '769525', 'n_tokens_mistral': 560, 'n_tokens_neox': 556, 'n_words': 135}