<commit_before>nav.navbar.section-navigation#filters
  hr
  ul.list-inline
    li= button_link t_title(:new), new_group_offer_path, 'success', dimension: 'sm'
    li= button_link t('.group_offer_categories'), group_offer_categories_path, dimension: 'sm'
    li
      - if action_name == 'index'
        = button_link t('.archived'), archived_group_offers_path, dimension: 'sm'
      - else
        = button_link t('.active'), group_offers_path, dimension: 'sm'
  hr
  ul.list-inline
    li= button_link t('clear_filters'), group_offers_path, 'info', dimension: 'sm'
    = list_filter_dropdown(:department_id, Department.all)
    = list_filter_dropdown(:offer_state, GroupOffer::OFFER_STATES)
    = list_filter_dropdown(:group_offer_category_id, GroupOfferCategory.all)
  hr

table.table.table-striped
  thead
    tr
      th= t_attr(:title)
      th= sort_link @q, :location
      th= t_attr(:availability)
      th= t_attr(:target_group)
      th= sort_link @q, :offer_state
      th= t_attr(:volunteers)
      th= sort_link @q, :group_offer_category, t_attr(:group_offer_category)
      th colspan=(policy(GroupOffer).destroy? ? '5' : '4')

  tbody
    - group_offers.each do |offer|
      tr
        td= offer.title
        td
          - if offer.external? && offer.organization?
            = offer.organization
            br
            = offer.location
          - if !offer.external? && offer.department
            = offer.department.contact.last_name
        td
          - availability_collection.each do |availability|
            - if offer[availability]
              = t("availability.#{availability}")
              br
        td
          - if offer.all?
            = t_attr(:all)
          - else
            - GroupOffer::TARGET_GROUP.each do |target|
              - if offer[target]
                = t_attr(target)
                br
        td= t("offer_state.#{offer.offer_state}") if offer.offer_state?
        td
          - offer.volunteers.each do |volunteer|
            = link_to volunteer, volunteer_path(volunteer)
            - if offer.responsible?(volunteer)
              br
              = t_attr(:responsible, GroupAssignment)
            -else
              br<commit_msg>add duration to index<commit_after>nav.navbar.section-navigation#filters
  hr
  ul.list-inline
    li= button_link t_title(:new), new_group_offer_path, 'success', dimension: 'sm'
    li= button_link t('.group_offer_categories'), group_offer_categories_path, dimension: 'sm'
    li
      - if action_name == 'index'
        = button_link t('.archived'), archived_group_offers_path, dimension: 'sm'
      - else
        = button_link t('.active'), group_offers_path, dimension: 'sm'
  hr
  ul.list-inline
    li= button_link t('clear_filters'), group_offers_path, 'info', dimension: 'sm'
    = list_filter_dropdown(:department_id, Department.all)
    = list_filter_dropdown(:offer_state, GroupOffer::OFFER_STATES)
    = list_filter_dropdown(:group_offer_category_id, GroupOfferCategory.all)
  hr

table.table.table-striped
  thead
    tr
      th= t_attr(:title)
      th= sort_link @q, :location
      th= t_attr(:availability)
      th= t_attr(:target_group)
      th= t_attr(:duration)
      th= sort_link @q, :offer_state
      th= t_attr(:volunteers)
      th= sort_link @q, :group_offer_category, t_attr(:group_offer_category)
      th colspan=(policy(GroupOffer).destroy? ? '5' : '4')

  tbody
    - group_offers.each do |offer|
      tr
        td= offer.title
        td
          - if offer.external? && offer.organization?
            = offer.organization
            br
            = offer.location
          - if !offer.external? && offer.department
            = offer.department.contact.last_name
        td
          - availability_collection.each do |availability|
            - if offer[availability]
              = t("availability.#{availability}")
              br
        td
          - if offer.all?
            = t_attr(:all)
          - else
            - GroupOffer::TARGET_GROUP.each do |target|
              - if offer[target]
                = t_attr(target)
                br
        td
          - GroupOffer::DURATION.each do |duration|
            - if offer[duration]
              = t_attr(duration)
              br
        td= t("offer_state.#{offer.offer_state}") if offer.offer_state?
        td
          - offer.volunteers.each do |volunteer|
            = link_to volunteer, volunteer_path(volunteer)
            - if offer.responsible?(volunteer)
              br
              = t_attr(:responsible, GroupAssignment)
            -else
              br
{'fraction_non_alphanumeric': 0.10677083333333333, 'fraction_numerical': 0.0008680555555555555, 'mean_word_length': 2.148224043715847, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '250209', 'n_tokens_mistral': 1445, 'n_tokens_neox': 1390, 'n_words': 274}