<commit_before><%= form_for :hyperlinks, url: '/submitted_content/remove_hyperlink' do |f| %>
  <% if stage != "Complete" %>
    <% if @current_user.name == participant.handle %>
      <b>Hyperlink Actions:</b><BR/>
      </br>
      <%= f.submit 'Delete selected hyperlink' %>
    <% end  %>
    </br>

    <%= f.hidden_field :participant_id, value: participant.id %>
    </br>
  <% end %>

  <b>Hyperlinks</b>&nbsp;&nbsp;&nbsp;

  <a href="#" id="urlLink" name="urlLink" onClick="toggleElement('url','links');return false;">hide links</a><br/>
  <div id="url" style="">
    <ul>
      <% participant.hyperlinks.each_with_index {
        |link, index| %>
      <% if stage != "Complete" %>
        <a href="<%= link %>" target="new"><%= link %></a>
        <br/>
        <% if index == 0 %>
          <input type="radio" id='chk_links' name='chk_links' checked value="<%= index %>"/>
        <% else %>
          <input type="radio" id='chk_links' name='chk_links' value="<%= index %>"/>
        <% end %>
      <% end %>
      <% } %>
    </ul>
  </div><commit_msg>Move the radio buttons before the hyperlinks<commit_after><%= form_for :hyperlinks, url: '/submitted_content/remove_hyperlink' do |f| %>
  <% if stage != "Complete" %>
    <% if @current_user.name == participant.handle %>
      <b>Hyperlink Actions:</b><BR/>
      </br>
      <%= f.submit 'Delete selected hyperlink' %>
    <% end  %>
    </br>

    <%= f.hidden_field :participant_id, value: participant.id %>
    </br>
  <% end %>

  <b>Hyperlinks</b>&nbsp;&nbsp;&nbsp;

  <a href="#" id="urlLink" name="urlLink" onClick="toggleElement('url','links');return false;">hide links</a><br/>
  <div id="url" style="">
    <ul>
      <% participant.hyperlinks.each_with_index {
        |link, index| %>
      <% if stage != "Complete" %>

        <% if index == 0 %>
          <input type="radio" id='chk_links' name='chk_links' checked value="<%= index %>"/>
        <% else %>
          <input type="radio" id='chk_links' name='chk_links' value="<%= index %>"/>
        <% end %>
              <a href="<%= link %>" target="new"><%= link %></a>
              <br/>
      <% end %>
      <% } %>
    </ul>
  </div>
{'fraction_non_alphanumeric': 0.22038567493112948, 'fraction_numerical': 0.0009182736455463728, 'mean_word_length': 2.6807432432432434, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '2132739', 'n_tokens_mistral': 798, 'n_tokens_neox': 718, 'n_words': 153}