<commit_before><?php namespace Mraiur\EnhancedForm;

class HtmlBuilder extends \Illuminate\Html\HtmlBuilder {
    public function ariaAttributes($attributes, $exclude = [])
    {
        $html = array();

        foreach ((array) $attributes as $key => $value)
        {
            if(!in_array($key, $exclude)){
                $element = $this->ariaAttributeElement($key, $value);
                if ( ! is_null($element)){
                    $html[] = $element;
                }
            }
        }
        return count($html) > 0 ? ' '.implode(' ', $html) : '';
    }

    private $aria_excluded_keys = ['value', 'name', 'id', 'style', 'autofocus', 'form', 'multiple', 'required', 'size'];

    protected function ariaAttributeElement($key, $value)
    {
        if (is_numeric($key)) $key = $value;

        if ( ! is_null($value)) return ( (in_array($key, $this->aria_excluded_keys))?$key:"data-".$key).'="'.e($value).'"';
    }
}<commit_msg>Updated the list of reserved attribute names.<commit_after><?php namespace Mraiur\EnhancedForm;

class HtmlBuilder extends \Illuminate\Html\HtmlBuilder {
    public function ariaAttributes($attributes, $exclude = [])
    {
        $html = array();

        foreach ((array) $attributes as $key => $value)
        {
            if(!in_array($key, $exclude)){
                $element = $this->ariaAttributeElement($key, $value);
                if ( ! is_null($element)){
                    $html[] = $element;
                }
            }
        }
        return count($html) > 0 ? ' '.implode(' ', $html) : '';
    }

    private $aria_excluded_keys = ['selected', 'value', 'name', 'id', 'style', 'autofocus', 'form', 'multiple', 'required', 'size'];

    protected function ariaAttributeElement($key, $value)
    {
        if (is_numeric($key)) $key = $value;

        if ( ! is_null($value)) return ( (in_array($key, $this->aria_excluded_keys))?$key:"data-".$key).'="'.e($value).'"';
    }
}
{'fraction_non_alphanumeric': 0.18321392016376664, 'fraction_numerical': 0.0010235414534288639, 'mean_word_length': 2.4601769911504423, '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': '6133993', 'n_tokens_mistral': 602, 'n_tokens_neox': 584, 'n_words': 121}