<commit_before><?php

namespace Rhubarb\Leaf\Controls\Common\Text;

use Rhubarb\Leaf\Leaves\Controls\Control;

class TextBox extends Control
{
    protected function getViewClass()
    {
        return TextBoxView::class;
    }
}<commit_msg>Added setMaxLength setter on TextBox<commit_after><?php

namespace Rhubarb\Leaf\Controls\Common\Text;

use Rhubarb\Leaf\Leaves\Controls\Control;

class TextBox extends Control
{
    protected function getViewClass()
    {
        return TextBoxView::class;
    }

    public function setMaxLength($maxLength)
    {
        $this->addHtmlAttribute("maxlength", $maxLength);
    }
}
{'fraction_non_alphanumeric': 0.10144927536231885, 'fraction_numerical': 0.0, 'mean_word_length': 3.7846153846153845, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '3786697', 'n_tokens_mistral': 195, 'n_tokens_neox': 194, 'n_words': 37}