<commit_before><?php
namespace php_templateTest;
use php_template;
use php_template\template;
use PHPUnit\Framework\TestCase;
class php_templateTest extends TestCase{
  public function testtemplate(){
    $dir = dirname(__FILE__).'/../mould/';
    $tpl = new template($dir);
    $tpl->caches = true;
    $tpl->assign("string","I was the title");
    $tpl->assign("array",array('aaa','bbb','ccc'));
    $tpl->assign("number", date("Y"));
    $tpl->assign("footer","***, Inc.");
    $tpl->GetFile("header.tpl")->GetFile("body.tpl")->GetFile("footer.tpl")->render();

    //$this->assertEqual(date("Y"), $tpl->vars['number']); private
    $this->assertFileExists($tpl->CacheDir.'header.tpl'.$CacheSuffix);
    $this->assertFileExists($tpl->CacheDir.'body.tpl'.$CacheSuffix);
    $this->assertFileExists($tpl->CacheDir.'footer.tpl'.$CacheSuffix);
  }
}<commit_msg>template class tpl->CacheSuffix<commit_after><?php
namespace php_templateTest;
use php_template;
use php_template\template;
use PHPUnit\Framework\TestCase;
class php_templateTest extends TestCase{
  public function testtemplate(){
    $dir = dirname(__FILE__).'/../mould/';
    $tpl = new template($dir);
    $tpl->caches = true;
    $tpl->assign("string","I was the title");
    $tpl->assign("array",array('aaa','bbb','ccc'));
    $tpl->assign("number", date("Y"));
    $tpl->assign("footer","***, Inc.");
    $tpl->GetFile("header.tpl")->GetFile("body.tpl")->GetFile("footer.tpl")->render();

    //$this->assertEqual(date("Y"), $tpl->vars['number']); private
    $this->assertFileExists($tpl->CacheDir.'header.tpl'.$tpl->CacheSuffix);
    $this->assertFileExists($tpl->CacheDir.'body.tpl'.$tpl->CacheSuffix);
    $this->assertFileExists($tpl->CacheDir.'footer.tpl'.$tpl->CacheSuffix);
  }
}
{'fraction_non_alphanumeric': 0.22475755847119225, 'fraction_numerical': 0.0, 'mean_word_length': 5.241992882562277, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, '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': '6976694', 'n_tokens_mistral': 576, 'n_tokens_neox': 603, 'n_words': 80}