<commit_before><% if @current_sheet && @current_sheet.task -%>
<%
   task = Task.find(@current_sheet.task_id, :conditions => ["tasks.company_id = ?", current_user.company_id], :include => [:project] )
   info = []
   info << "#{worked_nice(task.worked_minutes + @current_sheet.duration / 60)}" if task.worked_minutes > 0 || task.duration > 0
   info << "#{worked_nice(task.duration)}" if task.duration.to_i > 0

   info_string = " (#{info.join(" / ")})" if info.size > 0
   info_string ||= ""

-%>
  <%= link_to( image_tag("time_add.png", :border => 0, :class => "tooltip", :title => _("Done working on <b>%s</b> for now.", task.name) ), {:controller => 'tasks', :action => 'stop_work'} )  -%>
  <%= link_to( task.issue_name + " - " + task.project.name + " / " + task.full_tags, :controller => 'tasks', :action => 'edit', :id => task ) %> <br />
  <% if @current_sheet.paused? %>
    <%= link_to_remote image_tag("time_resume.png", :border => 0, :title => _("Resume working on <b>%s</b>.", task.name), :class => "tooltip"),
        :url => { :controller => 'tasks', :action => 'pause_work_ajax', :id => task },
        :loading => "Element.show('loading');",
        :complete => "Element.hide('loading');" -%> [<%= _('Paused') %>]
  <% else %>
    <%= link_to_remote image_tag("time_pause.png", :border => 0, :title => _("Pause working on <b>%s</b>.", task.name), :class => "tooltip"),
        :url => { :controller => 'tasks', :action => 'pause_work_ajax', :id => task },
        :loading => "Element.show('loading');",
        :complete => "Element.hide('loading');" -%><commit_msg>Include cancel work in header sheet info<commit_after><% if @current_sheet && @current_sheet.task -%>
<%
   task = Task.find(@current_sheet.task_id, :conditions => ["tasks.company_id = ?", current_user.company_id], :include => [:project] )
   info = []
   info << "#{worked_nice(task.worked_minutes + @current_sheet.duration / 60)}" if task.worked_minutes > 0 || task.duration > 0
   info << "#{worked_nice(task.duration)}" if task.duration.to_i > 0

   info_string = " (#{info.join(" / ")})" if info.size > 0
   info_string ||= ""

-%>
  <%= link_to( image_tag("time_add.png", :border => 0, :class => "tooltip", :title => _("Done working on <b>%s</b> for now.", task.name) ), {:controller => 'tasks', :action => 'stop_work'} )  -%>
  <%= link_to( task.issue_name + " - " + task.project.name + " / " + task.full_tags, :controller => 'tasks', :action => 'edit', :id => task ) %> <br />
  <%= link_to_remote image_tag("time_delete.png", :border => 0, :title => _("Cancel working on <b>%s</b>.", task.name), :class => "tooltip"),
          :url => { :controller => 'tasks', :action => 'cancel_work_ajax', :id => task },
          :loading => "Element.show('loading');",
          :complete => "Element.hide('loading');",
          :confirm => _("Really abort work?")
            -%>
  <% if @current_sheet.paused? %>
    <%= link_to_remote image_tag("time_resume.png", :border => 0, :title => _("Resume working on <b>%s</b>.", task.name), :class => "tooltip"),
        :url => { :controller => 'tasks', :action => 'pause_work_ajax', :id => task },
        :loading => "Element.show('loading');",
        :complete => "Element.hide('loading');" -%> [<%= _('Paused') %>]
  <% else %>
    <%= link_to_remote image_tag("time_pause.png", :border => 0, :title => _("Pause working on <b>%s</b>.", task.name), :class => "tooltip"),
        :url => { :controller => 'tasks', :action => 'pause_work_ajax', :id => task },
        :loading => "Element.show('loading');",
        :complete => "Element.hide('loading');" -%>
{'fraction_non_alphanumeric': 0.2388641425389755, 'fraction_numerical': 0.005289532293986637, 'mean_word_length': 3.7338603425559946, 'pattern_counts': {'":': 0, '<': 46, '<?xml version=': 0, '>': 112, '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': '7468235', 'n_tokens_mistral': 1277, 'n_tokens_neox': 1215, 'n_words': 255}