<commit_before>table.table.table-striped.group-assignments-table
  thead
    tr
      th= t_attr(:title, GroupOffer)
      th= t_attr(:role, GroupAssignment)
      th= t_attr(:period_start, GroupAssignment)
      th= t_attr(:period_end, GroupAssignment)
      th colspan=(editable ? '7' : '2')
  tbody
    - group_assignments.each do |group_assignment|
      tr
        td
          - if group_assignment.group_offer
            = link_to group_assignment.group_offer.title, group_offer_path(group_assignment.group_offer)
          - else
            = group_assignment.title
        - if group_assignment.responsible
          td= t_attr(:responsible, GroupAssignment)
        - else
          td= t_attr(:member, GroupAssignment)
        td= l(group_assignment.period_start) if group_assignment.period_start
        td= l(group_assignment.period_end) if group_assignment.period_end
        - if group_assignment.group_offer
          td= link_to t_action(:show), group_offer_path(group_assignment.group_offer)
        - if editable
          td= link_to t('download'), group_assignment_path(group_assignment, format: :pdf)
          td= link_to t_action(:edit), edit_group_offer_path(group_assignment.group_offer)
          - if policy(GroupOffer).destroy?
            td= link_to t_action(:destroy), group_offer_path(group_assignment.group_offer), confirm_deleting(group_assignment.group_offer)
          - else
            td
          td= link_to "#{ group_assignment.group_offer.active? ? t('.deactivate') : t('.activate') }",
              change_active_state_group_offer_path(group_assignment.group_offer), method: :put, remote: :true
          - if policy(Feedback).index?
            td= link_to t_title(:new, Feedback), new_polymorphic_path([@volunteer, group_assignment.group_offer, Feedback])
            td= link_to t_title(:index, Feedback), polymorphic_path([@volunteer, group_assignment.group_offer, Feedback])
          - else
            td
            td<commit_msg>restrict edit group offer link on volunteer show<commit_after>table.table.table-striped.group-assignments-table
  thead
    tr
      th= t_attr(:title, GroupOffer)
      th= t_attr(:role, GroupAssignment)
      th= t_attr(:period_start, GroupAssignment)
      th= t_attr(:period_end, GroupAssignment)
      th colspan=(editable ? '7' : '2')
  tbody
    - group_assignments.each do |group_assignment|
      tr
        td
          - if group_assignment.group_offer
            = link_to group_assignment.group_offer.title, group_offer_path(group_assignment.group_offer)
          - else
            = group_assignment.title
        - if group_assignment.responsible
          td= t_attr(:responsible, GroupAssignment)
        - else
          td= t_attr(:member, GroupAssignment)
        td= l(group_assignment.period_start) if group_assignment.period_start
        td= l(group_assignment.period_end) if group_assignment.period_end
        - if group_assignment.group_offer
          td= link_to t_action(:show), group_offer_path(group_assignment.group_offer)
        - if editable
          td= link_to t('download'), group_assignment_path(group_assignment, format: :pdf)
          - if policy(group_assignment.group_offer).edit?
            td= link_to t_action(:edit), edit_group_offer_path(group_assignment.group_offer)
          - if policy(GroupOffer).destroy?
            td= link_to t_action(:destroy), group_offer_path(group_assignment.group_offer), confirm_deleting(group_assignment.group_offer)
          - else
            td
          td= link_to "#{ group_assignment.group_offer.active? ? t('.deactivate') : t('.activate') }",
              change_active_state_group_offer_path(group_assignment.group_offer), method: :put, remote: :true
          - if policy(Feedback).index?
            td= link_to t_title(:new, Feedback), new_polymorphic_path([@volunteer, group_assignment.group_offer, Feedback])
            td= link_to t_title(:index, Feedback), polymorphic_path([@volunteer, group_assignment.group_offer, Feedback])
          - else
            td
            td
{'fraction_non_alphanumeric': 0.09491025325792968, 'fraction_numerical': 0.0009835259404966806, 'mean_word_length': 2.97265625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4823798', 'n_tokens_mistral': 1289, 'n_tokens_neox': 1237, 'n_words': 218}