<commit_before>- content_for(:title, 'Expiration du délai de conservation des dossiers')

- if @expired_dossiers.present?
  %h2= t('mail.administration.dossier_expiration_summary.expired_dossiers', count: @expired_dossiers.count)
  - @expired_dossiers.group_by(&:procedure).each do |procedure, dossiers|
    %dl
      %dt
        #{procedure.libelle} (#{link_to(procedure.id, manager_procedure_url(procedure))}) :
      %dd
        = dossiers.map { |d| link_to(d.id, manager_dossier_url(d)) }.join(', ').html_safe

- if @expiring_dossiers.present?
  %h2= t('mail.administration.dossier_expiration_summary.expiring_dossiers', count: @expiring_dossiers.count)
  - @expiring_dossiers.group_by(&:procedure).each do |procedure, dossiers|
    %dl
      %dt
        #{procedure.libelle} (#{link_to(procedure.id, manager_procedure_url(procedure))}) :
      %dd
        = dossiers.map { |d| link_to(d.id, manager_dossier_url(d)) }.join(', ').html_safe

- if @expired_dossiers.empty? && @expiring_dossiers.empty?
  Il n’y a pas de dossier expiré ou sur le point d’expirer.<commit_msg>fix missing procedure in AdministrationMailer#dossier_expiration_summary<commit_after>- content_for(:title, 'Expiration du délai de conservation des dossiers')

- if @expired_dossiers.present?
  %h2= t('mail.administration.dossier_expiration_summary.expired_dossiers', count: @expired_dossiers.count)
  - @expired_dossiers.group_by(&:procedure).each do |procedure, dossiers|
    %dl
      %dt
        - if procedure.present?
          #{procedure.libelle} (#{link_to(procedure.id, manager_procedure_url(procedure))}) :
        - else
          Procédure supprimée
      %dd
        = dossiers.map { |d| link_to(d.id, manager_dossier_url(d)) }.join(', ').html_safe

- if @expiring_dossiers.present?
  %h2= t('mail.administration.dossier_expiration_summary.expiring_dossiers', count: @expiring_dossiers.count)
  - @expiring_dossiers.group_by(&:procedure).each do |procedure, dossiers|
    %dl
      %dt
        - if procedure.present?
          #{procedure.libelle} (#{link_to(procedure.id, manager_procedure_url(procedure))}) :
        - else
          Procédure supprimée
      %dd
        = dossiers.map { |d| link_to(d.id, manager_dossier_url(d)) }.join(', ').html_safe

- if @expired_dossiers.empty? && @expiring_dossiers.empty?
  Il n’y a pas de dossier expiré ou sur le point d’expirer.
{'fraction_non_alphanumeric': 0.13403805496828752, 'fraction_numerical': 0.0016913319238900633, 'mean_word_length': 4.110151187904967, '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': '3228631', 'n_tokens_mistral': 891, 'n_tokens_neox': 851, 'n_words': 149}