<commit_before><div class="review">
  <h1>Finalize Submission</h1>
    <%= render partial: "stash_datacite/resources/missing_mandatory_data", locals: { data: @data } %>
  <h2 class="review_headers">Review Description</h2>
    <%= link_to "Edit Description", stash_url_helpers.metadata_entry_pages_find_or_create_path(resource_id: @resource.id), class: 'link_like_button', style: "float: right;" %>
    <%= render partial: "stash_datacite/resource_types/show", locals: { resource_type: @review.resource_type } %>
    <%= render partial: "stash_datacite/titles/show", locals: { title: @review.title } %>
    <%= render partial: "stash_datacite/creators/show", locals: { creators: @review.creators } %>
    <hr/>
    <%= render partial: "stash_datacite/shared/citations", locals: { creators: @review.creators, title: @review.title, resource_type: @review.resource_type } %>
    <hr/>
    <%= render partial: "stash_datacite/descriptions/show", locals: { abstract: @review.abstract, methods: @review.methods, usage_notes: @review.usage_notes } %>
    <%= render partial: "stash_datacite/subjects/show", locals: { subjects: @review.subjects } %>
    <%= render partial: "stash_datacite/contributors/show", locals: { contributors: @review.contributors } %>
    <%= render partial: "stash_datacite/related_identifiers/show", locals: { related_identifiers: @review.related_identifiers } %>

    <h3>Location</h3>
    <div id="map_review"></div>
    <%= render partial: "stash_datacite/geolocation_points/show", locals: { geolocation_points: @review.geolocation_points } %>
    <%= render partial: "stash_datacite/geolocation_boxes/show", locals: { geolocation_boxes: @review.geolocation_boxes } %>
    <%= render partial: "stash_datacite/geolocation_places/show", locals: { geolocation_places: @review.geolocation_places } %>
    <hr/>
    <%= link_to "Edit Description", stash_url_helpers.metadata_entry_pages_find_or_create_path(resource_id: @resource.id), class: 'link_like_button', style: "float: right;" %>

    <h2 class="review_headers">Review Data Files</h2>
    <% unless @file_uploads.blank? %>
      <span><%= link_to 'Edit Files', stash_engine.upload_resource_path(@resource), id: 'upload_path', class: 'link_like_button', style: "float: right;" %>
    <% end %>
    <%= render partial: "stash_engine/file_uploads/show", locals: { file_uploads:  @review.file_uploads } %>
      </span>

</div>
<div style = "float: left;margin: auto;">
  <%= link_to 'Back to My Datasets', stash_url_helpers.dashboard_path , id: 'dashboard_path', class: 'link_like_button' %>
</div>
<div style = "float: right;margin: auto;">
  <% if @data.blank? %>
    <%= link_to "Submit", stash_datacite.resources_submission_path(resource_id: @resource.id), data: { confirm: 'You sure you want to submit?'} , class: 'link_like_button' %>
  <% else %>
    <%= link_to("Submit", stash_datacite.resources_submission_path(resource_id: @resource.id), data: { disable_with: "Submit" }, class: 'link_like_button') %>
  <% end %>
</div>

<script type="text/javascript">
<% flash.each do |type, message| %>
  $("#flash_messages").html("<%= type.to_s.humanize %>: <%= message.html_safe %>")
<% end %>
</script><commit_msg>changing link_to helper to  button<commit_after><div class="review">
  <h1>Finalize Submission</h1>
    <%= render partial: "stash_datacite/resources/missing_mandatory_data", locals: { data: @data } %>
  <h2 class="review_headers">Review Description</h2>
    <%= link_to "Edit Description", stash_url_helpers.metadata_entry_pages_find_or_create_path(resource_id: @resource.id), class: 'link_like_button', style: "float: right;" %>
    <%= render partial: "stash_datacite/resource_types/show", locals: { resource_type: @review.resource_type } %>
    <%= render partial: "stash_datacite/titles/show", locals: { title: @review.title } %>
    <%= render partial: "stash_datacite/creators/show", locals: { creators: @review.creators } %>
    <hr/>
    <%= render partial: "stash_datacite/shared/citations", locals: { creators: @review.creators, title: @review.title, resource_type: @review.resource_type } %>
    <hr/>
    <%= render partial: "stash_datacite/descriptions/show", locals: { abstract: @review.abstract, methods: @review.methods, usage_notes: @review.usage_notes } %>
    <%= render partial: "stash_datacite/subjects/show", locals: { subjects: @review.subjects } %>
    <%= render partial: "stash_datacite/contributors/show", locals: { contributors: @review.contributors } %>
    <%= render partial: "stash_datacite/related_identifiers/show", locals: { related_identifiers: @review.related_identifiers } %>

    <h3>Location</h3>
    <div id="map_review"></div>
    <%= render partial: "stash_datacite/geolocation_points/show", locals: { geolocation_points: @review.geolocation_points } %>
    <%= render partial: "stash_datacite/geolocation_boxes/show", locals: { geolocation_boxes: @review.geolocation_boxes } %>
    <%= render partial: "stash_datacite/geolocation_places/show", locals: { geolocation_places: @review.geolocation_places } %>
    <hr/>
    <%= link_to "Edit Description", stash_url_helpers.metadata_entry_pages_find_or_create_path(resource_id: @resource.id), class: 'link_like_button', style: "float: right;" %>

    <h2 class="review_headers">Review Data Files</h2>
    <% unless @file_uploads.blank? %>
      <span><%= link_to 'Edit Files', stash_engine.upload_resource_path(@resource), id: 'upload_path', class: 'link_like_button', style: "float: right;" %>
    <% end %>
    <%= render partial: "stash_engine/file_uploads/show", locals: { file_uploads:  @review.file_uploads } %>
      </span>

</div>
<div style = "float: left;margin: auto;">
  <%= link_to 'Back to My Datasets', stash_url_helpers.dashboard_path , id: 'dashboard_path', class: 'link_like_button' %>
</div>
<div style = "float: right;margin: auto;">
  <% if @data.blank? %>
    <%= link_to "Submit", stash_datacite.resources_submission_path(resource_id: @resource.id), data: { confirm: 'You sure you want to submit?'} , class: 'link_like_button' %>
  <% else %>
    <%= button_to("Submit", stash_datacite.resources_submission_path(resource_id: @resource.id), disabled: true, class: 'link_like_button') %>
  <% end %>
</div>

<script type="text/javascript">
<% flash.each do |type, message| %>
  $("#flash_messages").html("<%= type.to_s.humanize %>: <%= message.html_safe %>")
<% end %>
</script>
{'fraction_non_alphanumeric': 0.1670064293554963, 'fraction_numerical': 0.00250901677904971, 'mean_word_length': 5.5015290519877675, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, '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': '6608283', 'n_tokens_mistral': 2252, 'n_tokens_neox': 2123, 'n_words': 400}