<commit_before><% @page_title = "Import Jobs" %>
<div class="row-fluid">
  <div class="row"><p class="lead">Import Jobs</p></div>
  <div class="row">
    <table class="table table-condensed table-striped table-bordered" summary="Import Job List">
    <tr class="header">
      <th>Dataset</th>
      <th>Status</th>
      <th>Actions</th>
      <th>Job Control</th>
    </tr>
    <% @import_jobs.each do |import_job| %>
    <tr>
      <td><%= import_job.csv_dataset.csv_file_file_name %></td>
      <td><%= import_job.status %></td>
      <td>
        <div class="btn-group">
          <%= link_to("Show", csv_dataset_import_job_path(import_job.csv_dataset, import_job), :class => 'btn btn-small') %>
          <%= link_to("Edit", edit_csv_dataset_import_job_path(import_job.csv_dataset, import_job), :class => 'btn btn-small') %>
          <%= link_to("Destroy", csv_dataset_import_job_path(import_job.csv_dataset, import_job), :class => 'btn btn-small btn-danger', :method => :delete) %>
        </div>
      </td>
      <td>
        <% if import_job.status == "importing" %>
          <%= link_to("Stop", {:controller => 'import_jobs', :action => 'show', :dataset_id => import_job.csv_dataset.id, :id => import_job.id }, :class => 'btn btn-small btn-info') %>
        <% else %>
          <%= link_to("Start", {:controller => 'import_jobs', :action => 'background_import', :dataset_id => import_job.csv_dataset.id, :id => import_job.id }, :class => 'btn btn-small btn-info') %>
        <% end %>
      </td>
    </tr>
    <% end %>
    </table>
  </div>
  <div class="row"><%= link_to("<< Back", csv_datasets_path, :class => 'btn') %>
</div><commit_msg>Add data column to import_jobs list<commit_after><% @page_title = "Import Jobs" %>
<div class="row-fluid">
  <div class="row"><p class="lead">Import Jobs</p></div>
  <div class="row">
    <table class="table table-condensed table-striped table-bordered" summary="Import Job List">
    <tr class="header">
      <th>Dataset</th>
      <th>Status</th>
    <th>Data</th>
      <th>Actions</th>
      <th>Job Control</th>
    </tr>
    <% @import_jobs.each do |import_job| %>
    <tr>
      <td><%= import_job.csv_dataset.csv_file_file_name %></td>
      <td><%= import_job.status %></td>
      <td>
        <div class="btn-group row-fluid">
          <%= link_to("Taxa (#{import_job.taxa.count})", taxa_path(:import_job => import_job.id), :class => 'btn btn-small span6') %>
          <%= link_to("OTUs (#{import_job.otus.count})", otus_path(:import_job => import_job.id), :class => 'btn btn-small span6') %>
        </div>
      </td>
      <td>
        <div class="btn-group row-fluid">
          <%= link_to("Show", csv_dataset_import_job_path(import_job.csv_dataset, import_job), :class => 'btn btn-small span4') %>
          <%= link_to("Edit", edit_csv_dataset_import_job_path(import_job.csv_dataset, import_job), :class => 'btn btn-small span4') %>
          <%= link_to("Destroy", csv_dataset_import_job_path(import_job.csv_dataset, import_job), :class => 'btn btn-small btn-danger span4', :method => :delete) %>
        </div>
      </td>
      <td>
        <% if import_job.status == "importing" %>
          <%= link_to("Stop", {:controller => 'import_jobs', :action => 'show', :dataset_id => import_job.csv_dataset.id, :id => import_job.id }, :class => 'btn btn-small btn-info btn-block') %>
        <% else %>
          <%= link_to("Start", {:controller => 'import_jobs', :action => 'background_import', :dataset_id => import_job.csv_dataset.id, :id => import_job.id }, :class => 'btn btn-small btn-info btn-block') %>
        <% end %>
      </td>
    </tr>
    <% end %>
    </table>
  </div>
  <div class="row-fluid"><%= link_to("<< Back", csv_datasets_path, :class => 'btn') %></div>
</div>
{'fraction_non_alphanumeric': 0.20292553191489363, 'fraction_numerical': 0.0013297872340425532, 'mean_word_length': 3.2884834663626, 'pattern_counts': {'":': 0, '<': 110, '<?xml version=': 0, '>': 140, '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': '2253697', 'n_tokens_mistral': 1381, 'n_tokens_neox': 1298, 'n_words': 252}