<commit_before>.panel{:id => "#{task.object_key}_task_panel", :class => bootstrap_class_priority_type(task.priority_type)}
  .panel-heading
    %span.pull-right
      .btn-group{:style => 'margin-left: 5px;'}
        %button.btn.btn-default.btn-xs.dropdown-toggle{"data-toggle" => "dropdown", :aria_expanded => "false"}
          = task.state.titleize
          %span.caret
        %ul.dropdown-menu{:role => "menu"}
          %li
            - task.allowable_events.each do |evt|
              = link_to fire_workflow_event_task_path(task, :event => evt) do
                %i.fa.fa-fw{:class => get_workflow_event_icon(evt)}
                = "#{evt.titleize} this task"
          %li.divider
          %li
            = link_to task_path(task), :method => :delete, :data => {:confirm => "Are you sure you want to remove this task? The action can't be undone."} do
              %i.fa.fa-trash-o.fa-fw
              = " Remove this task"
      .btn-group{:style => 'margin-left: 5px;'}
        %button.btn.btn-default.btn-xs.dropdown-toggle{"data-toggle" => "dropdown", :aria_expanded => "false"}
          - if task.assigned_to_user.nil?
            Assign
          - else
            = task.assigned_to_user
          %span.caret
        %ul.dropdown-menu{:role => "menu"}
          %li
            - @organization.users.each do |usr|
              = link_to change_owner_task_path(task, :user => usr.object_key) do
                %i.fa.fa-fw.fa-user
                = usr
          - if task.assigned_to_user
            %li.divider
            %li
              = link_to change_owner_task_path(task, :user => "") do
                %i.fa.fa-fw.fa-minus-square-o
                Unassign

    %i.fa.fa-lg.fa-caret-right.panel-toggle{:style => 'font-size:1.25em;margin-right:5px;', :data => {:toggle => "collapse", :target => "##{task.object_key}_panel_body"}}
    = task.subject.upcase


  .panel-body.collapse{:id => "#{task.object_key}_panel_body"}
    %p= task.body.html_safe

  .panel-footer.clearfix
    %span.pull-right.text-muted
      %i.fa.fa-clock-o
      = " due #{format_as_date_time_distance(task.complete_by)} from now"
    - if task.taskable
      %span.pull-left
        = link_to eval("#{task.taskable.class.name.underscore}_path(:id => '#{task.taskable.object_key}')") do
          %i.fa.fa-fw.fa-link
          = task.taskable<commit_msg>Add ability to go to the task detail<commit_after>.panel{:id => "#{task.object_key}_task_panel", :class => bootstrap_class_priority_type(task.priority_type)}
  .panel-heading
    %span.pull-right
      .btn-group{:style => 'margin-left: 5px;'}
        %button.btn.btn-default.btn-xs.dropdown-toggle{"data-toggle" => "dropdown", :aria_expanded => "false"}
          = task.state.titleize
          %span.caret
        %ul.dropdown-menu{:role => "menu"}
          %li
            - task.allowable_events.each do |evt|
              = link_to fire_workflow_event_task_path(task, :event => evt) do
                %i.fa.fa-fw{:class => get_workflow_event_icon(evt)}
                = "#{evt.titleize} this task"
          %li.divider
          %li
            = link_to task_path(task), :method => :delete, :data => {:confirm => "Are you sure you want to remove this task? The action can't be undone."} do
              %i.fa.fa-trash-o.fa-fw
              = " Remove this task"
      .btn-group{:style => 'margin-left: 5px;'}
        %button.btn.btn-default.btn-xs.dropdown-toggle{"data-toggle" => "dropdown", :aria_expanded => "false"}
          - if task.assigned_to_user.nil?
            Assign
          - else
            = task.assigned_to_user
          %span.caret
        %ul.dropdown-menu{:role => "menu"}
          %li
            - @organization.users.each do |usr|
              = link_to change_owner_task_path(task, :user => usr.object_key) do
                %i.fa.fa-fw.fa-user
                = usr
          - if task.assigned_to_user
            %li.divider
            %li
              = link_to change_owner_task_path(task, :user => "") do
                %i.fa.fa-fw.fa-minus-square-o
                Unassign

    %i.fa.fa-lg.fa-caret-right.panel-toggle{:style => 'font-size:1.25em;margin-right:5px;', :data => {:toggle => "collapse", :target => "##{task.object_key}_panel_body"}}
    = task.subject.upcase


  .panel-body.collapse{:id => "#{task.object_key}_panel_body"}
    %p= task.body.html_safe

  .panel-footer.clearfix
    %span.pull-right.text-muted
      .btn-group{:style => 'margin-left: 5px;'}
        = link_to task_path(task), :class => "btn btn-success btn-xs" do
          %i.fa.fa-fw.fa-plus
          Open

      %i.fa.fa-clock-o
      = " due #{format_as_date_time_distance(task.complete_by)} from now"

    - if task.taskable
      %span.pull-left
        = link_to eval("#{task.taskable.class.name.underscore}_path(:id => '#{task.taskable.object_key}')") do
          %i.fa.fa-fw.fa-link
          = task.taskable
{'fraction_non_alphanumeric': 0.15464336516968097, 'fraction_numerical': 0.002641739483844747, 'mean_word_length': 2.082028804007514, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 51, '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': '352046', 'n_tokens_mistral': 1698, 'n_tokens_neox': 1662, 'n_words': 262}