<commit_before><div>
  <p>You're about to save the<%= " first #{@max_export} of " if @num_found > @max_export %> <%= @num_found %>
    records from the current search result to Mendeley</p>

  <h6>Save in</h6>
  <form id="mendeley-save-form"  method="post" action="<%= mendeley_index_save_path %>" data-remote="true">
    <select name="folder" autofocus="autofocus">
      <optgroup label="Folders">
        <option value="">Unsorted</option>
        <%= render_mendeley_folders @folders %>
      </optgroup>
      <optgroup label="Groups">
        <%= render_mendeley_groups @groups %>
      </optgroup>
    </select>

    <h6>Tags</h6>
    <input name="tags" type="text"/>

    <% params.each do |k,v| %>
      <input type="hidden" name="<%= k %>" value="<%= v %>"/>
    <% end %>
    <input type="hidden" name="export_id" value="<%= @export_id %>"/>
    <input type="hidden" name="authenticity_token" value="<%= form_authenticity_token %>">
    <commit_msg>Properly encode nested query parameters into hidden fields. Refs #1738<commit_after><div>
  <p>You're about to save the<%= " first #{@max_export} of " if @num_found > @max_export %> <%= @num_found %>
    records from the current search result to Mendeley</p>

  <h6>Save in</h6>
  <form id="mendeley-save-form"  method="post" action="<%= mendeley_index_save_path %>" data-remote="true">
    <select name="folder" autofocus="autofocus">
      <optgroup label="Folders">
        <option value="">Unsorted</option>
        <%= render_mendeley_folders @folders %>
      </optgroup>
      <optgroup label="Groups">
        <%= render_mendeley_groups @groups %>
      </optgroup>
    </select>

    <h6>Tags</h6>
    <input name="tags" type="text"/>

    <% Rack::Utils.parse_query(URI(request.url).query).each do |k,v| %>
      <input type="hidden" name="<%= k %>" value="<%= v %>"/>
    <% end %>
    <input type="hidden" name="export_id" value="<%= @export_id %>"/>
    <input type="hidden" name="authenticity_token" value="<%= form_authenticity_token %>">
    
{'fraction_non_alphanumeric': 0.19078295341922696, 'fraction_numerical': 0.005946481665014866, 'mean_word_length': 3.73943661971831, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 67, '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': '2353898', 'n_tokens_mistral': 753, 'n_tokens_neox': 683, 'n_words': 147}