<commit_before><h2>Delayed Jobs (<%= pluralize(@jobs.size, 'job') %>)</h2>

<%= table_for @jobs do |t| %>
  <%= t.head do %>
    <%= t.r do %>
      <%= t.h('id') %>
      <%= t.h('priority') %>
      <%= t.h('attempts') %>
      <%= t.h('handler') %>
      <%= t.h('last error') %>
      <%= t.h('queue') %>
      <%= t.h('run at') %>
      <%= t.h('failed at') %>
      <%= t.h('locked at') %>
      <%= t.h('locked by') %>
    <% end %>
  <% end %>
  <%= t.body do |row| %>
    <%= t.r do %>
      <%= t.d row['id'] %>
      <%= t.d row['priority'] %>
      <%= t.d row['attempts'] %>
      <%= t.d YAML.load(row['handler']) %>
      <%= t.d row['last_error'].match(/.*\n/).to_s %>
      <%= t.d row['queue'] %>
      <%= t.d row['run_at'] %>
      <%= t.d row['failed_at'] %>
      <%= t.d row['locked_at'] %>
      <%= t.d row['locked_by'] %>
    <% end %>
  <% end %>
<% end %>
<commit_msg>In DelayedJob admin screen, handle an empty last error field<commit_after><h2>Delayed Jobs (<%= pluralize(@jobs.size, 'job') %>)</h2>

<%= table_for @jobs do |t| %>
  <%= t.head do %>
    <%= t.r do %>
      <%= t.h('id') %>
      <%= t.h('priority') %>
      <%= t.h('attempts') %>
      <%= t.h('handler') %>
      <%= t.h('last error') %>
      <%= t.h('queue') %>
      <%= t.h('run at') %>
      <%= t.h('failed at') %>
      <%= t.h('locked at') %>
      <%= t.h('locked by') %>
    <% end %>
  <% end %>
  <%= t.body do |row| %>
    <%= t.r do %>
      <%= t.d(row['id']) %>
      <%= t.d(row['priority']) %>
      <%= t.d(row['attempts']) %>
      <%= t.d(YAML.load(row['handler'])) %>
      <%= t.d(row['last_error'].match(/.*\n/).to_s) unless row['last_error'].nil? %>
      <%= t.d(row['queue']) %>
      <%= t.d(row['run_at']) %>
      <%= t.d(row['failed_at']) %>
      <%= t.d(row['locked_at']) %>
      <%= t.d(row['locked_by']) %>
    <% end %>
  <% end %>
<% end %>

{'fraction_non_alphanumeric': 0.320915380521554, 'fraction_numerical': 0.0021287919105907396, 'mean_word_length': 2.1490787269681744, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '5612650', 'n_tokens_mistral': 914, 'n_tokens_neox': 774, 'n_words': 117}