<commit_before>mixin field-label(name, label)
  - var label = label || name
  .form-group
    label(for=name).control-label.col-sm-3 #{label}
    .col-sm-3
      block
    label.control-label.unit
    .help-block.with-errors

mixin field-radio(name, value)
  label.radio-inline.col-sm-4
    input(type='radio', id=value, name=name, value=value)
    block

mixin field-static(name, label)
  +field-label(name, label)
    .col-sm-8
      p(id=name).form-control-static

mixin field-text-length(name, label)
  +field-label(name, label)
    input(type='text', id=name, name=name,
      pattern='[0-9]+\\.?[0-9]*',
      data-error='Must be a sequence of digits with at most one decimal point').form-control
    block<commit_msg>amend fields to be required<commit_after>mixin field-label(name, label)
  - var label = label || name
  .form-group
    label(for=name).control-label.col-sm-3 #{label}
    .col-sm-3
      block
    label.control-label.unit
    .help-block.with-errors

mixin field-radio(name, value)
  label.radio-inline.col-sm-4
    input(type='radio', id=value, name=name, value=value)
    block

mixin field-static(name, label)
  +field-label(name, label)
    .col-sm-8
      p(id=name).form-control-static

mixin field-text-length(name, label)
  +field-label(name, label)
    input(type='text', id=name, name=name,
      required,
      pattern='^[0-9]+\\.?[0-9]*$',
      data-error='Must be a sequence of digits with at most one decimal point').form-control
    block
{'fraction_non_alphanumeric': 0.15608108108108107, 'fraction_numerical': 0.010810810810810811, 'mean_word_length': 3.1836158192090394, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4892942', 'n_tokens_mistral': 532, 'n_tokens_neox': 528, 'n_words': 108}