<commit_before><?php

namespace AppBundle\Action;

class BaseTemplate extends AbstractTemplate
{
    protected $title = null;
    protected $content = null;
    protected $version = null;

    private $showHeaderImage;
    private $showResultsMenu;
    private $showFinalResults;

    public function __construct($showHeaderImage, $showResultsMenu, $showFinalResults, $version)
    {
        $this->showHeaderImage = $showHeaderImage;
        $this->showResultsMenu = $showResultsMenu;
        $this->showFinalResults = $showFinalResults;
        $this->version = $version;
    }

    public function setContent($content)
    {
        $this->content = $content;
        $this->title = $this->project['abbv'];
    }

    public function render()
    {
        return <<<EOT
        {$this->renderHead()}
        {$this->renderHeader()}
        <body>
            <div id="layout-topmenu">
              {$this->renderTopMenu()}
            </div>
            <div class="container">
              {$this->content}
            </div>
      {$this->renderFooter()}
      
    {$this->renderScripts()}

EOT;
    }

    /*  DOC & Header  */
    protected function renderHead()
    {
        return <<<EOT
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="refresh" content="0; url=http://aysonationalopencup.org/contact-ayso/">
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{$this->escape($this->project['abbv'])}</title>
    <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="/images/favicon.ico">
    <link rel="apple-touch-icon" type="image/png" href="/images/apple-touch-icon-72x72.png"><!-- iPad -->
    <link rel="apple-touch-icon" type="image/png" sizes="114x114" href="/images/apple-touch-icon-114x114.png"><!-- iPhone4 -->
    <link rel="icon" type="image/png" href="/images/apple-touch-icon-114x114.png"><!-- Opera Speed Dial, at least 144?114 px -->
    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.1.1/normalize.min.css" media="all" />
    <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.vertical-tabs.min.css">
    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/4.3.2/css/fileinput.min.css" media="all" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="/css/zayso.css" media="all" />
</head>
EOT;
    }

    protected function renderHeader()
    {
        if (!$this->showHeaderImage) {
            $html =
                <<<EOT
    <div id="banner">
          <h1>
          <a href="{$this->project['website']}" target="_blank"><img src="{$this->project['logo']}" height="36" alt="{$this->project['shortTitle']}"></a>     
          {$this->escape($this->project['title'])}
          </h1>
    </div>
EOT;
        } else {
            $html =
                <<<EOT
    <div class="skBanners">
        <a href="http://www.aysonationalopencup.org/" target="_blank"><img class="width-90" src="/images/header-ipad_01.png"></a>
        <br/>
        <p class="subtitle skFont width-90">{$this->project['welcome']}</p>
    </div>
EOT;
        }<commit_msg>Full redirect to andy<commit_after><?php

namespace AppBundle\Action;

class BaseTemplate extends AbstractTemplate
{
    protected $title = null;
    protected $content = null;
    protected $version = null;

    private $showHeaderImage;
    private $showResultsMenu;
    private $showFinalResults;

    public function __construct($showHeaderImage, $showResultsMenu, $showFinalResults, $version)
    {
        $this->showHeaderImage = $showHeaderImage;
        $this->showResultsMenu = $showResultsMenu;
        $this->showFinalResults = $showFinalResults;
        $this->version = $version;
    }

    public function setContent($content)
    {
        $this->content = $content;
        $this->title = $this->project['abbv'];
    }

    public function render()
    {
        return <<<EOT
        {$this->renderHead()}

EOT;
    }

    /*  DOC & Header  */
    protected function renderHead()
    {
        return <<<EOT
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="refresh" content="0; url=http://aysonationalopencup.org/contact-ayso/">
</head>
EOT;
    }

    protected function renderHeader()
    {
        if (!$this->showHeaderImage) {
            $html =
                <<<EOT
    <div id="banner">
          <h1>
          <a href="{$this->project['website']}" target="_blank"><img src="{$this->project['logo']}" height="36" alt="{$this->project['shortTitle']}"></a>     
          {$this->escape($this->project['title'])}
          </h1>
    </div>
EOT;
        } else {
            $html =
                <<<EOT
    <div class="skBanners">
        <a href="http://www.aysonationalopencup.org/" target="_blank"><img class="width-90" src="/images/header-ipad_01.png"></a>
        <br/>
        <p class="subtitle skFont width-90">{$this->project['welcome']}</p>
    </div>
EOT;
        }
{'fraction_non_alphanumeric': 0.17916505604947816, 'fraction_numerical': 0.01198299188248937, 'mean_word_length': 2.7527193618564176, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 102, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, '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': '1441890', 'n_tokens_mistral': 1680, 'n_tokens_neox': 1618, 'n_words': 285}