<commit_before><?php
/**
 * File created by <NAME> <<EMAIL>>
 */

namespace PFBC\Element;

class Range extends Textbox
{
    public function render()
    {
        $this->attributes['type'] = 'range'; // Range Type
        $this->attributes['id'] = 'rangeInput';
        $this->attributes['oninput'] = 'rangeOutput.value = rangeInput.value';
        $this->validation[] = new \PFBC\Validation\Numeric;
        parent::render();
        echo '<strong><output id="rangeOutput"></output></strong>';
        echo '<script>$(function(){$("#rangeOutput").val($("#rangeInput").val())});</script>';
    }
}<commit_msg>Improve code + readability & use NOWDOC<commit_after><?php
/**
 * File created by <NAME> <<EMAIL>>
 */

namespace PFBC\Element;

class Range extends Textbox
{
    public function render()
    {
        $this->attributes['type'] = 'range'; // Range Type
        $this->attributes['id'] = 'rangeInput';
        $this->attributes['oninput'] = 'rangeOutput.value = rangeInput.value';
        $this->validation[] = new \PFBC\Validation\Numeric;
        parent::render();

        echo <<<'HTML'
            <strong><output id="rangeOutput"></output></strong>
            <script>$(function(){$("#rangeOutput").val($("#rangeInput").val())});</script>
HTML;
    }
}
{'fraction_non_alphanumeric': 0.20347003154574134, 'fraction_numerical': 0.0, 'mean_word_length': 3.272727272727273, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 29, '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': '531001', 'n_tokens_mistral': 370, 'n_tokens_neox': 369, 'n_words': 71}