<commit_before><h2>Files</h2>
<div class="file-panel">
  <div class="panel panel-default">
    <div class="panel-heading">Data Files</div>
      <div class="panel-body">
        <fieldset class="file bg-upload">
          <%= f.text_field "files[][title]", label: "Title", class: "title", value: file.title, placeholder: t(:'dataset_file.name'), readonly: !file.id.nil? %>
          <%= f.text_area "files[][description]", label: "Description", class: "description", value: file.description, placeholder: t(:'dataset_file.description') %>

          <% if file.filename %>
            <div class="form-group filename-wrapper">
              <div class="current-file">
                <label class="control-label">Current file</label>
                <p><%= link_to file.filename, file.gh_pages_url %> <%= f.check_box "Change file #{i}", label: "Change file", class: "change-file" %> </p>
              </div>
            </div>
          <% else %>
            <%= f.file_field "files[][file]", label: "File", accept: ".csv" %>
          <% end %>

          <%= f.hidden_field("files[][id]", name: "files[][id]", value: file.id) if file.id %>
        </fieldset>
      </div>
    </div>
    <div class="panel panel-default">
      <div class="panel-heading">Optional Schema</div>
      <div class="panel-body">
        <fieldset class="file bg-upload">
          <h4>Upload a schema for this Data File</h4>

          <p>Provide an optional <a href='http://csvlint.io/about#how_write_schema\'>schema</a> that all data files must adhere to</p>

          <%= f.text_field "files[][schema_name]", label: "Schema name", value: schema.name, placeholder: t(:'dataset.schema.name') %>
          <%= f.text_area "files[][schema_description]", label: "Schema description", value: schema.description, placeholder: t(:'dataset.schema.description') %>
          <div><%= f.file_field "files[][schema]", label: "File" %></div>
        </fieldset>
      </div>
    </div>
  </div>
</div><commit_msg>Extra closing div meant submit button ended up outside of the form causing a right headache when working out why a test wasn't working<commit_after><h2>Files</h2>
<div class="file-panel">
  <div class="panel panel-default">
    <div class="panel-heading">Data Files</div>
    <div class="panel-body">
      <fieldset class="file bg-upload">
        <%= f.text_field "files[][title]", label: "Title", class: "title", value: file.title, placeholder: t(:'dataset_file.name'), readonly: !file.id.nil? %>
        <%= f.text_area "files[][description]", label: "Description", class: "description", value: file.description, placeholder: t(:'dataset_file.description') %>

        <% if file.filename %>
          <div class="form-group filename-wrapper">
            <div class="current-file">
              <label class="control-label">Current file</label>
              <p><%= link_to file.filename, file.gh_pages_url %> <%= f.check_box "Change file #{i}", label: "Change file", class: "change-file" %> </p>
            </div>
          </div>
        <% else %>
          <%= f.file_field "files[][file]", label: "File", accept: ".csv" %>
        <% end %>

        <%= f.hidden_field("files[][id]", name: "files[][id]", value: file.id) if file.id %>
      </fieldset>
    </div>
    <div class="panel panel-default">
      <div class="panel-heading">Optional Schema</div>
      <div class="panel-body">
        <fieldset class="file bg-upload">
          <h4>Upload a schema for this Data File</h4>

          <p>Provide an optional <a href='http://csvlint.io/about#how_write_schema\'>schema</a> that all data files must adhere to</p>

          <%= f.text_field "files[][schema_name]", label: "Schema name", value: schema.name, placeholder: t(:'dataset.schema.name') %>
          <%= f.text_area "files[][schema_description]", label: "Schema description", value: schema.description, placeholder: t(:'dataset.schema.description') %>
          <div><%= f.file_field "files[][schema]", label: "File" %></div>
        </fieldset>
      </div>
    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.18864197530864196, 'fraction_numerical': 0.0019753086419753087, 'mean_word_length': 2.995069033530572, 'pattern_counts': {'":': 0, '<': 100, '<?xml version=': 0, '>': 100, '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': '2877922', 'n_tokens_mistral': 1285, 'n_tokens_neox': 1220, 'n_words': 299}