<commit_before><%= render_to_element('.procedure-actions', partial: "download_dossiers", 
                      locals: { procedure: @procedure, xlsx_export: @xlsx_export, csv_export: @csv_export, ods_export: @ods_export }) %>

<% [[@xlsx_export, :xlsx], [@csv_export, :csv], [@ods_export, :ods]].each do |(export, format)| %>
  <% if export && !export.ready? %>
    <%= fire_event('export:update', { url: download_export_instructeur_procedure_path(@procedure, export_format: format, no_progress_notification: true) }.to_json ) %>
  <% end %>
<% end %>

<%= render_flash(timeout: 20000) %><commit_msg>laisse afficher le message flash avec le fichier à télécharger<commit_after><%= render_to_element('.procedure-actions', partial: "download_dossiers", 
                      locals: { procedure: @procedure, xlsx_export: @xlsx_export, csv_export: @csv_export, ods_export: @ods_export }) %>

<% [[@xlsx_export, :xlsx], [@csv_export, :csv], [@ods_export, :ods]].each do |(export, format)| %>
  <% if export && !export.ready? %>
    <%= fire_event('export:update', { url: download_export_instructeur_procedure_path(@procedure, export_format: format, no_progress_notification: true) }.to_json ) %>
  <% end %>
<% end %>

<%= render_flash %>
{'fraction_non_alphanumeric': 0.17408906882591094, 'fraction_numerical': 0.004048582995951417, 'mean_word_length': 5.404145077720207, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6033699', 'n_tokens_mistral': 462, 'n_tokens_neox': 410, 'n_words': 82}