<commit_before>- set_title T('job_applications.applications_for_group', group_name: @group.name)

.section
  %h2
    = @group.name
    &ndash;
    = @admission.title
  %p
    = t('admissions.group_information', group_name: @group.name,
                                        n_applications: @group.job_applications_in_admission(@admission).length,
                                        n_jobs: @group.jobs_in_admission(@admission).length,
                                        n_applicants: @group.job_applications_in_admission(@admission).map(&:applicant).uniq.length)

  %p
    != succeed '.' do
      != link_to t('admissions.show_all_applications'), applications_admissions_admin_admission_group_path(@admission, @group)
  %p
    = link_to t('admissions_admin.show_interested_other_positions'), admissions_admin_admission_show_interested_other_positions_path(@admission)
  %p
    = link_to t('admissions_admin.reject_calls', group_name: @group.name), reject_calls_admissions_admin_admission_group_path

  %table
    %thead
      %tr
        %th= t('groups.job_title')
        %th= t('groups.applicants')
        %th= t('groups.job_type')
        %th
        %th
    %tbody
      - @jobs.each do |job|
        %tr
          %td
            = link_to admissions_admin_admission_group_job_path(@admission, @group, job) do
              = job.title
          %td
            = job.job_applications.count
          %td
            - if job.is_officer
              = t('common.officer')
            - else
              = t('common.group_member')
          %td
            != link_to t('groups.job_listing'), job
          %td
            - if can?(:edit, Job, job)
              != link_to t('groups.edit_job'), edit_admissions_admin_admission_group_job_path(@admission, @group, job)
            - if can?(:destroy, Job, job) && !job.job_applications.exists?
              != link_to t('groups.delete_job'), admissions_admin_admission_group_job_path(@admission, @group, job), method: "delete", confirm: t('crud.confirm')

  - if can?(:create, Job)
    %p
      = link_to new_admissions_admin_admission_group_job_path(@admission, @group), { class: "sexybutton sexysimple sexyred" } do
        = T('jobs.create')

  %p
    %figure
      %figcaption= t('admissions_admin.applications_by_day_for_group', group: @group.name)
      %img{ src: @applications_per_day_chart }<commit_msg>Give delete button its own column<commit_after>- set_title T('job_applications.applications_for_group', group_name: @group.name)

.section
  %h2
    = @group.name
    &ndash;
    = @admission.title
  %p
    = t('admissions.group_information', group_name: @group.name,
                                        n_applications: @group.job_applications_in_admission(@admission).length,
                                        n_jobs: @group.jobs_in_admission(@admission).length,
                                        n_applicants: @group.job_applications_in_admission(@admission).map(&:applicant).uniq.length)

  %p
    != succeed '.' do
      != link_to t('admissions.show_all_applications'), applications_admissions_admin_admission_group_path(@admission, @group)
  %p
    = link_to t('admissions_admin.show_interested_other_positions'), admissions_admin_admission_show_interested_other_positions_path(@admission)
  %p
    = link_to t('admissions_admin.reject_calls', group_name: @group.name), reject_calls_admissions_admin_admission_group_path

  %table
    %thead
      %tr
        %th= t('groups.job_title')
        %th= t('groups.applicants')
        %th= t('groups.job_type')
        %th
        %th
        %th
    %tbody
      - @jobs.each do |job|
        %tr
          %td
            = link_to admissions_admin_admission_group_job_path(@admission, @group, job) do
              = job.title
          %td
            = job.job_applications.count
          %td
            - if job.is_officer
              = t('common.officer')
            - else
              = t('common.group_member')
          %td
            != link_to t('groups.job_listing'), job
          %td
            - if can?(:edit, Job, job)
              != link_to t('groups.edit_job'), edit_admissions_admin_admission_group_job_path(@admission, @group, job)
          %td
            - if can?(:destroy, Job, job) && !job.job_applications.exists?
              != link_to t('groups.delete_job'), admissions_admin_admission_group_job_path(@admission, @group, job), method: "delete", confirm: t('crud.confirm')

  - if can?(:create, Job)
    %p
      = link_to new_admissions_admin_admission_group_job_path(@admission, @group), { class: "sexybutton sexysimple sexyred" } do
        = T('jobs.create')

  %p
    %figure
      %figcaption= t('admissions_admin.applications_by_day_for_group', group: @group.name)
      %img{ src: @applications_per_day_chart }
{'fraction_non_alphanumeric': 0.1172069825436409, 'fraction_numerical': 0.00041562759767248546, 'mean_word_length': 2.513138686131387, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6098428', 'n_tokens_mistral': 1565, 'n_tokens_neox': 1505, 'n_words': 243}