<commit_before><% @page_title = 'Upload Your Files' %>
<%= render partial: 'stash_engine/shared/dataset_steps_nav' %>

<h1>Upload your files (optional)</h1>

<h2>Step 1: choose your files</h2>
<div>
  <%= form_for @file, html: {multipart: true, id: 'fileupload'} do |f| %>
    <div id="upload_bg">

      <%= f.hidden_field :resource_id %>
      <p>
        <%= image_tag('stash_engine/dragndrop.png') %>
      </p>
      or

      <p>
        <%= label_tag(:upload_upload, "Add files...") %>
        <%= file_field_tag 'upload[upload]', multiple: true %>
      </p>
    </div>
    <!-- The loading indicator is shown during image processing -->
    <div class="fileupload-loading"></div>
    <br/>
    <!-- The table listing the files available for upload/download -->
    <table class="table table-striped">
      <tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody>
    </table>

  <% end %>
</div>

<h2>Step 2: Upload your files</h2>

<div id="upload_list">
  <%= render partial: "stash_engine/file_uploads/uploaded_file", collection: @resource.file_uploads %>
</div>

<div id="upload_total">
  Total:
</div>


<div>
  <button id="upload_all" type="button">Upload</button>
</div>
<div style="clear:both">&nbsp;</div>


<%= render partial: 'stash_engine/file_uploads/dropped_file' %>

<style>
  .buttony {
    border-width: 1px;
    border-style: solid;
    margin: 1em 1em 1em 1em;<commit_msg>integrate headings on upload page<commit_after><% @page_title = 'Upload Your Files' %>
<%= render partial: 'stash_engine/shared/dataset_steps_nav' %>

<h1 class="o-heading__level1">Upload Your Files <span class="t-upload__heading-optional">(optional)</span></h1>

<p>Size limits: 2GB per file, 10 GB in total. To upload larger datasets, <a href="mailto:<EMAIL>">contact us</a>.</p>

<h2 class="t-upload__choose-heading--active">Step 1: Choose your files</h2>
<div>
  <%= form_for @file, html: {multipart: true, id: 'fileupload'} do |f| %>
    <div id="upload_bg">

      <%= f.hidden_field :resource_id %>
      <p>
        <%= image_tag('stash_engine/dragndrop.png') %>
      </p>
      or

      <p>
        <%= label_tag(:upload_upload, "Add files...") %>
        <%= file_field_tag 'upload[upload]', multiple: true %>
      </p>
    </div>
    <!-- The loading indicator is shown during image processing -->
    <div class="fileupload-loading"></div>
    <br/>
    <!-- The table listing the files available for upload/download -->
    <table class="table table-striped">
      <tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody>
    </table>

  <% end %>
</div>

<h2 class="t-upload__choose-heading">Step 2: Upload your files</h2>

<div id="upload_list">
  <%= render partial: "stash_engine/file_uploads/uploaded_file", collection: @resource.file_uploads %>
</div>

<div id="upload_total">
  Total:
</div>


<div>
  <button id="upload_all" type="button">Upload</button>
</div>
<div style="clear:both">&nbsp;</div>


<%= render partial: 'stash_engine/file_uploads/dropped_file' %>

<style>
  .buttony {
    border-width: 1px;
    border-style: solid;
    margin: 1em 1em 1em 1em;
{'fraction_non_alphanumeric': 0.18132740552556367, 'fraction_numerical': 0.00952683391552874, 'mean_word_length': 3.6597633136094676, 'pattern_counts': {'":': 0, '<': 98, '<?xml version=': 0, '>': 98, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3741616', 'n_tokens_mistral': 1157, 'n_tokens_neox': 1078, 'n_words': 247}