<commit_before><%def name="field(renderer, field_type, name, label=None, help=None,
        help_position='inline', required=False, add_on=None, 
        extra_markup=None,**kwargs)">
  <div class="control-group ${name}-control ${renderer.is_error(name) and 'error' or ''}">
    % if label is not False:
      <%
        if label is None:
            label = name.replace('_', ' ').replace('-', ' ').title()
        if not label.endswith(':'):
            label += ':'
      %>
      <label class="control-label" for="${name}">
        ${label}
        % if required:
          <span class="required">*</span>
        % endif
      </label>
    % endif
    <div class="controls">
      % if add_on is not None:
        <span class="add-on">${add_on}</span>
      % endif
      ${getattr(renderer, field_type)(name, **kwargs)}
      % if extra_markup:
        ${extra_markup | n}
      % endif<commit_msg>form template: add-on position and raw markup.<commit_after><%def name="field(renderer, field_type, name, label=None, help=None,
        help_position='inline', required=False, add_on=None, add_on_position='prepend',
        extra_markup=None,**kwargs)">
  <div class="control-group ${name}-control ${renderer.is_error(name) and 'error' or ''}">
    % if label is not False:
      <%
        if label is None:
            label = name.replace('_', ' ').replace('-', ' ').title()
        if not label.endswith(':'):
            label += ':'
      %>
      <label class="control-label" for="${name}">
        ${label}
        % if required:
          <span class="required">*</span>
        % endif
      </label>
    % endif
    <div class="controls ${'input-{0}'.format(add_on_position) if add_on else ''}">
      % if add_on is not None:
        <span class="add-on">${add_on | n}</span>
      % endif
      ${getattr(renderer, field_type)(name, **kwargs)}
      % if extra_markup:
        ${extra_markup | n}
      % endif
{'fraction_non_alphanumeric': 0.1758298755186722, 'fraction_numerical': 0.0005186721991701245, 'mean_word_length': 2.494565217391304, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '2388159', 'n_tokens_mistral': 626, 'n_tokens_neox': 612, 'n_words': 137}