<commit_before><%
    tag_attrs = ['required', 'element', 'error_condition', 'inputs_hash']
    inputs_hash = @attributes['inputs_hash'] || 'inputs'
    error_condition = @attributes['error_condition'] ? @attributes['error_condition'] : "#{inputs_hash}[#{@attributes['element']}].error?"
    required =  @attributes['required'] ? @attributes['required'] : "#{inputs_hash}[#{@attributes['element']}].required?"
%>
<forms:row error_condition="<%=error_condition%>" required="<%=required%>" element="<%=@attributes['element']%>">
    <forms:element_label element="<%=@attributes['element']%>" required="<%=required%>" inputs_hash="<%=inputs_hash%>"/>
    <sp:run obj="@<%=inputs_hash%>[<%=@attributes['element']%>]" widget="<%=@attributes['element']%>">
      <sp:attribute widget="<%=@attributes['element'][1..-1]%>" name="required" value="<%=(@attributes['required']=='true')? 'true' : ''%>" />
      <%
        (@attributes.keys - tag_attrs).each do |k|
      %>
      <sp:attribute widget="<%=@attributes['element'][1..-1]%>" name="<%=k%>" value="<%=@attributes[k]%>" />
      <%
        end
      %>
    </sp:run>
</forms:row><commit_msg>Wrap inputs in divs inside element_row; added :description help-block<commit_after><%
    tag_attrs = ['required', 'element', 'error_condition', 'inputs_hash']
    inputs_hash = @attributes['inputs_hash'] || 'inputs'
    error_condition = @attributes['error_condition'] ? @attributes['error_condition'] : "#{inputs_hash}[#{@attributes['element']}].error?"
    required =  @attributes['required'] ? @attributes['required'] : "#{inputs_hash}[#{@attributes['element']}].required?"
%>
<forms:row error_condition="<%=error_condition%>" required="<%=required%>" element="<%=@attributes['element']%>">
    <forms:element_label element="<%=@attributes['element']%>" required="<%=required%>" inputs_hash="<%=inputs_hash%>"/>
    <div class="controls">
      <sp:run obj="@<%=inputs_hash%>[<%=@attributes['element']%>]" widget="<%=@attributes['element']%>">
        <sp:attribute widget="<%=@attributes['element'][1..-1]%>" name="required" value="<%=(@attributes['required']=='true')? 'true' : ''%>" />
        <%
          (@attributes.keys - tag_attrs).each do |k|
        %>
        <sp:attribute widget="<%=@attributes['element'][1..-1]%>" name="<%=k%>" value="<%=@attributes[k]%>" />
        <%
          end
        %>
      </sp:run>
      <p sp:if="!@model.elements[<%=@attributes['element']%>].attributes[:description].blank?" class="help-block">
        { @model.elements[<%=@attributes['element']%>].attributes[:description] }
      </p>
    </div>
</forms:row>
{'fraction_non_alphanumeric': 0.2617217524980784, 'fraction_numerical': 0.0030745580322828594, 'mean_word_length': 5.606598984771574, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '5983940', 'n_tokens_mistral': 862, 'n_tokens_neox': 831, 'n_words': 103}