<commit_before><h1>Schedule</h1>

<p class='intro'>
  The list below contains all scheduled jobs.  Click &quot;Queue now&quot; to queue
  a job immediately.
  <br/> Server local time: <%= Time.now %>
  <br/> Server Environment: <%= Resque::Scheduler.env%>
  <br/> Current master: <%= Resque.redis.get(Resque::Scheduler.master_lock.key) %>
</p>
<p class='intro'>
	The highlighted jobs are skipped for current environment.
</p>
<div style="overflow-y: auto; width:100%; padding: 0px 5px;">
<table>
  <tr>
    <% if Resque::Scheduler.dynamic %>
      <th></th>
    <% end %>
    <th></th>
    <th>Name</th>
    <th>Description</th>
    <th>Interval</th>
    <th>Class</th>
    <th>Queue</th>
    <th>Arguments</th>
    <th>Last Enqueued</th>
  </tr>
  <% Resque.schedule.keys.sort.each do |name| %>
    <% config = Resque.schedule[name] %>
    <tr style="<%= scheduled_in_this_env?(name) ? '' : 'color: #9F6000;background: #FEEFB3;' %>">
      <% if Resque::Scheduler.dynamic %>
        <td style="padding-top: 12px; padding-bottom: 2px; width: 10px">
          <form action="<%= u "/schedule" %>" method="post" style="margin-left: 0">
            <input type="hidden" name="job_name" value="<%= h name %>">
            <input type="hidden" name="_method" value="delete">
            <input type="submit" value="Delete">
          </form>
        </td>
      <% end %>
      <td style="padding-top: 12px; padding-bottom: 2px; width: 10px">
        <form action="<%= u "/schedule/requeue" %>" method="post" style="margin-left: 0">
          <input type="hidden" name="job_name" value="<%= h name %>">
          <input type="submit" value="Queue now">
        </form>
      </td>
      <td><%= h name %></td>
      <td><%= h config['description'] %></td>
      <td style="white-space:nowrap"><%= h schedule_interval(config) %></td>
      <td><%= h schedule_class(config) %></td>
      <td><%= h config['queue'] || queue_from_class_name(config['class']) %></td>
      <td><%= h config['args'].inspect %></td>
      <td><%= h Resque.get_last_enqueued_at(name) || 'Never' %></td>
    </tr>
  <% end %>
</table>
</div><commit_msg>Adding index column to scheduler tab.<commit_after><h1>Schedule</h1>

<p class='intro'>
  The list below contains all scheduled jobs.  Click &quot;Queue now&quot; to queue
  a job immediately.
  <br/> Server local time: <%= Time.now %>
  <br/> Server Environment: <%= Resque::Scheduler.env%>
  <br/> Current master: <%= Resque.redis.get(Resque::Scheduler.master_lock.key) %>
</p>
<p class='intro'>
	The highlighted jobs are skipped for current environment.
</p>
<div style="overflow-y: auto; width:100%; padding: 0px 5px;">
<table>
  <tr>
    <th>Index</th>
    <% if Resque::Scheduler.dynamic %>
      <th></th>
  <% end %>
    <th></th>
    <th>Name</th>
    <th>Description</th>
    <th>Interval</th>
    <th>Class</th>
    <th>Queue</th>
    <th>Arguments</th>
    <th>Last Enqueued</th>
  </tr>
  <% Resque.schedule.keys.sort.each_with_index do |name, index| %>
    <% config = Resque.schedule[name] %>
    <tr style="<%= scheduled_in_this_env?(name) ? '' : 'color: #9F6000;background: #FEEFB3;' %>">
	    <td style="padding-left: 15px;"><%= index+ 1 %>.</td>
      <% if Resque::Scheduler.dynamic %>
        <td style="padding-top: 12px; padding-bottom: 2px; width: 10px">
          <form action="<%= u "/schedule" %>" method="post" style="margin-left: 0">
            <input type="hidden" name="job_name" value="<%= h name %>">
            <input type="hidden" name="_method" value="delete">
            <input type="submit" value="Delete">
          </form>
        </td>
      <% end %>
      <td style="padding-top: 12px; padding-bottom: 2px; width: 10px">
        <form action="<%= u "/schedule/requeue" %>" method="post" style="margin-left: 0">
          <input type="hidden" name="job_name" value="<%= h name %>">
          <input type="submit" value="Queue now">
        </form>
      </td>
      <td><%= h name %></td>
      <td><%= h config['description'] %></td>
      <td style="white-space:nowrap"><%= h schedule_interval(config) %></td>
      <td><%= h schedule_class(config) %></td>
      <td><%= h config['queue'] || queue_from_class_name(config['class']) %></td>
      <td><%= h config['args'].inspect %></td>
      <td><%= h Resque.get_last_enqueued_at(name) || 'Never' %></td>
    </tr>
  <% end %>
</table>
</div>
{'fraction_non_alphanumeric': 0.2158256880733945, 'fraction_numerical': 0.012155963302752294, 'mean_word_length': 3.161259541984733, 'pattern_counts': {'":': 0, '<': 176, '<?xml version=': 0, '>': 176, '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': '7581683', 'n_tokens_mistral': 1636, 'n_tokens_neox': 1509, 'n_words': 352}