<commit_before><?php
namespace Cicada\Responses;

use Cicada\Templates\Php\PhpTemplate;

class PhpResponse extends AbstractResponse {
    private $templateFile;
    private $values;

    function __construct($templateFile, $values) {
        $this->templateFile = $templateFile;
        $this->values = $values;
    }

    public function serialize() {
        $template = new PhpTemplate();
        $template->setTemplateFile($this->templateFile);
        $template->assignValues($this->values);
        return $template->serialize();
    }
}<commit_msg>init values when constructing response<commit_after><?php
namespace Cicada\Responses;

use Cicada\Templates\Php\PhpTemplate;

class PhpResponse extends AbstractResponse {
    private $templateFile;
    private $values;

    function __construct($templateFile, $values = array()) {
        $this->templateFile = $templateFile;
        $this->values = $values;
    }

    public function serialize() {
        $template = new PhpTemplate();
        $template->setTemplateFile($this->templateFile);
        $template->assignValues($this->values);
        return $template->serialize();
    }
}
{'fraction_non_alphanumeric': 0.12314410480349346, 'fraction_numerical': 0.0, 'mean_word_length': 3.4591439688715955, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '402410', 'n_tokens_mistral': 320, 'n_tokens_neox': 311, 'n_words': 65}