<commit_before><?php
namespace COI\Social;

abstract class AbstractElement {
        
    private $wasOutput = false;    
    
    public function __construct() {
        $this->templateDir = __DIR__.'/../../templates/'.strtolower(getClassName($this));
    }    

    abstract function button($options = array());    

    public function script() {
        return $this->template('script');
    }

    protected function buttonHtml($name, $parameters) {
        $this->wasOutput = true;
        return $this->template($name, 'buttons', $parameters);
    }
    
    private function template($name, $subDir = null, $parameters = array()) {
        extract($parameters);
        ob_start(); 
        include $this->templateDir."/{$subDir}/{$name}.php";
        return ob_get_clean();
    }
        
    public function wasOutput() {
        return $this->wasOuput;
    }
}<commit_msg>Fixed the same typo in a different place.<commit_after><?php
namespace COI\Social;

abstract class AbstractElement {
        
    private $wasOutput = false;    
    
    public function __construct() {
        $this->templateDir = __DIR__.'/../../templates/'.strtolower(getClassName($this));
    }    

    abstract function button($options = array());    

    public function script() {
        return $this->template('script');
    }

    protected function buttonHtml($name, $parameters) {
        $this->wasOutput = true;
        return $this->template($name, 'buttons', $parameters);
    }
    
    private function template($name, $subDir = null, $parameters = array()) {
        extract($parameters);
        ob_start(); 
        include $this->templateDir."/{$subDir}/{$name}.php";
        return ob_get_clean();
    }
        
    public function wasOutput() {
        return $this->wasOutput;
    }
}
{'fraction_non_alphanumeric': 0.14317548746518105, 'fraction_numerical': 0.0, 'mean_word_length': 2.473887814313346, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '3196330', 'n_tokens_mistral': 495, 'n_tokens_neox': 485, 'n_words': 109}