<commit_before><?php namespace ProcessWire; ?>
<?php include('partials/header.php');?>
<main class="site__content">
    <?php
        $backgroundimage = $page->get('backgroundimage|image');
        $backgroundimage = $backgroundimage->first ? "background-image: url({$backgroundimage->first->httpUrl});" : '';
    ?>
    <header
    style="<?=$backgroundimage?>"
    class="stripe stripe--<?=$page->backgroundcolor->title?>">
        <?=editButton($page)?>
        <div>
            <div class="title">
                <h1><?=$page->title?></h1>
                <?=listingOfSeries($page, false, true)?>

                <p class="description"><?=$page->summary?></p>
            </div>
            <? if(!$page->hideauthor):?>
                <div layout="row">
                    <div class="avatar" layout="row" layout-align="start center">
                        <img src="<?=$page->createdUser->image->first->httpUrl?>" alt="<?=$page->createdUser->username?>">
                        <span>
                            Written by <a href="<?=$pages->get("title=about")->httpUrl ?>"><strong><?=$page->createdUser->username?></strong></a>
                            <br>on <time><?=date('jS \o\f F Y', $page->published)?></time>
                            <br><img src="https://img.shields.io/twitter/follow/martinmuzatko.svg?style=social&label=Follow%20@martinmuzatko" alt="">
                        </span>
                    </div>
                </div>
            <? endif;?>
            <p>
                <?=tags($page)?>
            </p>
        </div>
    </header>
    <? if($page->parent->template->title == 'overview' && $page->parent->contenttype->title == 'series'): ?>
    <div>
        <h2>Overview</h2>
        <? foreach($page->siblings as $index => $sibling ):?>
            <h3><?=$index+1?>. <?=$sibling->title?></h3>
            <? foreach($sibling->children as $index => $child ):?>
                <? if (!$child->hidetitle): ?>
                    <h4><?=$child->title?></h4>
                <? endif; ?>
            <? endforeach;?>
        <? endforeach;?>
    </div>
    <? endif; ?>
    <? $contentPages = $page->children; ?>
    <?php include('partials/content.php');?>
    <? if($page->parent->template->name == 'overview'): ?><commit_msg>Link to the correct author on pages<commit_after><?php namespace ProcessWire; ?>
<?php include('partials/header.php');?>
<main class="site__content">
    <?php
        $backgroundimage = $page->get('backgroundimage|image');
        $backgroundimage = $backgroundimage->first ? "background-image: url({$backgroundimage->first->httpUrl});" : '';
    ?>
    <header
    style="<?=$backgroundimage?>"
    class="stripe stripe--<?=$page->backgroundcolor->title?>">
        <?=editButton($page)?>
        <div>
            <div class="title">
                <h1><?=$page->title?></h1>
                <?=listingOfSeries($page, false, true)?>

                <p class="description"><?=$page->summary?></p>
            </div>
            <? if(!$page->hideauthor):?>
                <div layout="row">
                    <div class="avatar" layout="row" layout-align="start center">
                        <img src="<?=$page->createdUser->image->first->httpUrl?>" alt="<?=$page->createdUser->username?>">
                        <span>
                            Written by <a href="<?=$pages->get('/about/')->httpUrl ?>"><strong><?=$page->createdUser->username?></strong></a>
                            <br>on <time><?=date('jS \o\f F Y', $page->published)?></time>
                            <br><img src="https://img.shields.io/twitter/follow/martinmuzatko.svg?style=social&label=Follow%20@martinmuzatko" alt="">
                        </span>
                    </div>
                </div>
            <? endif;?>
            <p>
                <?=tags($page)?>
            </p>
        </div>
    </header>
    <? if($page->parent->template->title == 'overview' && $page->parent->contenttype->title == 'series'): ?>
    <div>
        <h2>Overview</h2>
        <? foreach($page->siblings as $index => $sibling ):?>
            <h3><?=$index+1?>. <?=$sibling->title?></h3>
            <? foreach($sibling->children as $index => $child ):?>
                <? if (!$child->hidetitle): ?>
                    <h4><?=$child->title?></h4>
                <? endif; ?>
            <? endforeach;?>
        <? endforeach;?>
    </div>
    <? endif; ?>
    <? $contentPages = $page->children; ?>
    <?php include('partials/content.php');?>
    <? if($page->parent->template->name == 'overview'): ?>
{'fraction_non_alphanumeric': 0.21812227074235807, 'fraction_numerical': 0.00480349344978166, 'mean_word_length': 1.972744970798183, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 213, 'https://': 2, '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': '1704095', 'n_tokens_mistral': 1355, 'n_tokens_neox': 1330, 'n_words': 194}