<commit_before><?php
namespace Inanimatt\SiteBuilder\Renderer;

use Inanimatt\SiteBuilder\SiteBuilderTemplate;

class PhpRenderer implements RendererInterface
{
    protected $templatePath;
    
    public function __construct($templatePath)
    {
        $this->templatePath = $templatePath;
    }
    
    public function render($data, $template)
    {
        $view = new SiteBuilderTemplate;
        $view->__setVars($data);
        return $view->render($this->templatePath.$template);
    }

}<commit_msg>Ensure that template path includes directory separator<commit_after><?php
namespace Inanimatt\SiteBuilder\Renderer;

use Inanimatt\SiteBuilder\SiteBuilderTemplate;

class PhpRenderer implements RendererInterface
{
    protected $templatePath;
    
    public function __construct($templatePath)
    {
        $this->templatePath = $templatePath;
    }
    
    public function render($data, $template)
    {
        $view = new SiteBuilderTemplate;
        $view->__setVars($data);
        return $view->render($this->templatePath.DIRECTORY_SEPARATOR.$template);
    }

}
{'fraction_non_alphanumeric': 0.10083256244218317, 'fraction_numerical': 0.0, 'mean_word_length': 3.546218487394958, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '7001', 'n_tokens_mistral': 298, 'n_tokens_neox': 300, 'n_words': 58}