<commit_before><h1><%= @export.name %></h1>
<div id="custom_export_options">
  <h4>Options</h4>
  <ul>
    <li><%= link_to("#{image_tag('icon_edit.gif')} Edit".html_safe, edit_export_path(@export)) if @export.modifiable? %></li>
    <li><%= link_to "#{image_tag('icon_export.png')} Export".html_safe, export_path(@export, :format => :csv)  %></li>
    <li><%= link_to "#{image_tag('icon_copy.png')} Copy".html_safe, exports_path(:original_export_id => @export.id), :method => :post %></li>
  </ul>
</div>
<div class="show_export_info">
  <p>
    <label>Category:</label>
    <%= @export.model_name %>
  </p>
  </div>
  <div class="show_export_info">
  <p>
    <label>Description:</label>
  </p>
    <%= simple_format @export.description %>
</div>

<table>
  <caption>Export Items</caption>
  <thead>
    <tr>
      <th>Name</th>
      <th>Export Field</th>
      <th class='action_icons'>&nbsp;</th>
    </tr>
  </thead>
  <tbody id="export_items" <%= "class='sortable' data-url='#{export_item_sorting_path}'" if @export.modifiable? %>>
    <%= render :partial => @export.export_items.ordered %>
  </tbody>
</table>

<%= content_tag(:p, 'Drag and drop the rows in the table above to re-order the export data left to right in the output (see sample below).', :class => 'instructions') if @export.modifiable? %>

<%= render(:partial => 'filters') unless @export.export_filters.blank? %>

<div class='scrolling'>
  <table>
    <caption>Sample Output (first <%= Rexport::SAMPLE_SIZE %> records)</caption>
    <tr>
      <%= (@export.header.map {|heading| content_tag(:th, heading)} * '').html_safe %>
    </tr>
    <% for record in @export.sample_records %>
      <tr class="<%= cycle('odd','even') %>">
        <%= (record.map { |item| content_tag(:td, item) } * '').html_safe  %>
      </tr>
    <% end %>
  </table>
</div><commit_msg>change to avoid rails string double quoting<commit_after><h1><%= @export.name %></h1>
<div id="custom_export_options">
  <h4>Options</h4>
  <ul>
    <li><%= link_to("#{image_tag('icon_edit.gif')} Edit".html_safe, edit_export_path(@export)) if @export.modifiable? %></li>
    <li><%= link_to "#{image_tag('icon_export.png')} Export".html_safe, export_path(@export, :format => :csv)  %></li>
    <li><%= link_to "#{image_tag('icon_copy.png')} Copy".html_safe, exports_path(:original_export_id => @export.id), :method => :post %></li>
  </ul>
</div>
<div class="show_export_info">
  <p>
    <label>Category:</label>
    <%= @export.model_name %>
  </p>
  </div>
  <div class="show_export_info">
  <p>
    <label>Description:</label>
  </p>
    <%= simple_format @export.description %>
</div>

<table>
  <caption>Export Items</caption>
  <thead>
    <tr>
      <th>Name</th>
      <th>Export Field</th>
      <th class='action_icons'>&nbsp;</th>
    </tr>
  </thead>
  <%= content_tag :tbody, {:id => 'export_items'}.merge(@export.modifiable? ? {:class => 'sortable', 'data-url' => export_item_sorting_path} : {}) do %>
    <%= render :partial => @export.export_items.ordered %>
  <% end %>
</table>

<%= content_tag(:p, 'Drag and drop the rows in the table above to re-order the export data left to right in the output (see sample below).', :class => 'instructions') if @export.modifiable? %>

<%= render(:partial => 'filters') unless @export.export_filters.blank? %>

<div class='scrolling'>
  <table>
    <caption>Sample Output (first <%= Rexport::SAMPLE_SIZE %> records)</caption>
    <tr>
      <%= (@export.header.map {|heading| content_tag(:th, heading)} * '').html_safe %>
    </tr>
    <% for record in @export.sample_records %>
      <tr class="<%= cycle('odd','even') %>">
        <%= (record.map { |item| content_tag(:td, item) } * '').html_safe  %>
      </tr>
    <% end %>
  </table>
</div>
{'fraction_non_alphanumeric': 0.2188002142474558, 'fraction_numerical': 0.0021424745581146223, 'mean_word_length': 4.060975609756097, 'pattern_counts': {'":': 0, '<': 138, '<?xml version=': 0, '>': 153, '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': '4801019', 'n_tokens_mistral': 1406, 'n_tokens_neox': 1337, 'n_words': 276}