<commit_before>-field_order(@collection)
div.editarea
  -@fields.each do |line, array|
    div
      -field_layout(array)
      -@field_array.each do |field, cell|
        -if (@page && (field.page_number == @page.position || field.page_number == nil )) || (current_page?(action: 'edit_fields'))
          -span_width = !field.percentage.blank? ? (field.percentage - 1) : @width
          span(style="width:#{span_width}%")
            =label_tag field.label
            <br>
            -content = cell.nil? ? nil : cell.content
            -if field.input_type == "text"
              =text_field_tag "fields[#{field.id}][#{field.label}]", content, class: 'field-input'
            -elsif field.input_type == "select"
              -options = field.options.split(";") unless field.options.nil?
              =select_tag("fields[#{field.id}][#{field.label}]", options_for_select(options, content), class: 'field-input')
            -elsif field.input_type == "label"
              =hidden_field_tag "fields[#{field.id}][#{field.label}]", content, class: 'field-input'
            -else<commit_msg>Fixes capitalization of label text<commit_after>-field_order(@collection)
div.editarea
  -@fields.each do |line, array|
    div
      -field_layout(array)
      -@field_array.each do |field, cell|
        -if (@page && (field.page_number == @page.position || field.page_number == nil )) || (current_page?(action: 'edit_fields'))
          -span_width = !field.percentage.blank? ? (field.percentage - 1) : @width
          span(style="width:#{span_width}%")
            =label_tag field.label, field.label
            <br>
            -content = cell.nil? ? nil : cell.content
            -if field.input_type == "text"
              =text_field_tag "fields[#{field.id}][#{field.label}]", content, class: 'field-input'
            -elsif field.input_type == "select"
              -options = field.options.split(";") unless field.options.nil?
              =select_tag("fields[#{field.id}][#{field.label}]", options_for_select(options, content), class: 'field-input')
            -elsif field.input_type == "label"
              =hidden_field_tag "fields[#{field.id}][#{field.label}]", content, class: 'field-input'
            -else
{'fraction_non_alphanumeric': 0.16591928251121077, 'fraction_numerical': 0.0008968609865470852, 'mean_word_length': 2.6158833063209075, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6884189', 'n_tokens_mistral': 689, 'n_tokens_neox': 696, 'n_words': 128}