<commit_before>.row
  .col-xs-12
    h1
      | Tasks in project 
      = @project.name

    table.table.table-striped
      thead
        tr
          th
            | Name
          th
            | Description
          th
            | Assignees
          th
          th
          th
      tbody
        - @tasks.each do |task|
          tr
            td
              = task.name
            td
              = task.description
            td
              = link_to 'Assignees', project_task_assignments_path(@project,task)
            td
              = link_to 'Show', project_task_path(@project,task)
            td
              -if can? :update, task
                = link_to 'Edit', edit_project_task_path(@project,task)
            td
              -if can? :destroy, task
                = link_to 'Destroy', project_task_path(@project,task), method: :delete, data: { confirm: 'Are you sure?' }
    br
    - if can? :create, Task
      = link_to 'New Task', new_project_task_path(@project), :class => 'btn btn-primary'
<commit_msg>Added modal tasks<commit_after>.row
  .col-xs-12
    h1
      | Tasks in project 
      = @project.name

    table.table.table-striped
      thead
        tr
          th
            | Name
          th
            | Assignees
          th
      tbody
        - @tasks.each do |task|
          tr
            td
              a data-toggle="modal" data-target="#modal-#{task.id}" href="#"
                = task.name
            td
              = link_to 'Assignees', project_task_assignments_path(@project,task)
            - content_for :modals do
              .modal.fade id="modal-#{task.id}" aria-hidden="true" aria-labelledby="" role="dialog" tabindex="-1"
                .modal-dialog
                  .modal-content
                    .modal-header
                      button.close aria-hidden="true" data-dismiss="modal" type="button"
                      h4#myModalLabel.modal-title = task.name
                    .modal-body
                      .row
                        .col-xs-12
                          p = task.description
      
                    .modal-footer
                      -if can? :destroy, task
                        = link_to 'Delete', project_task_path(@project,task), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger pull-left"
                      -if can? :update, task
                        = link_to 'Edit', edit_project_task_path(@project,task), class: "btn btn-info"
                      button.btn.btn-default data-dismiss="modal" type="button" Close
    br
    - if can? :create, Task
      = link_to 'New Task', new_project_task_path(@project), :class => 'btn btn-primary'
= yield :modals

{'fraction_non_alphanumeric': 0.10263929618768329, 'fraction_numerical': 0.0036656891495601175, 'mean_word_length': 1.2836820083682008, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4213424', 'n_tokens_mistral': 772, 'n_tokens_neox': 738, 'n_words': 173}