<commit_before>- document ||= listing

%li.document.holder
  = link_to document.name, droom.folder_document_url(document.folder, document), :class => document.file_extension, :title => t(:click_to_download, :name => document.file_file_name)
  - if admin? && @event
    - d_a = @event.document_attachments.find_by_document_id(document)
    = link_to t(:remove), droom.folder_document_url(document.folder, document), :method => :delete, :remote => true, :class => 'delete minimal', :data => {:confirm => t(:confirm_remove_document, :name => document.name, :event_name => @event.name)}
<commit_msg>repair document-delete<commit_after>- document ||= listing

%li.document.holder
  = link_to document.name, droom.folder_document_url(document.folder, document), :class => document.file_extension, :title => t(:click_to_download, :name => document.file_file_name)
  - if admin?
    = link_to t(:remove), droom.folder_document_url(document.folder, document), :method => :delete, :remote => true, :class => 'delete minimal', :data => {:confirm => t(:confirm_remove_document, :name => document.name, :event_name => @event.name)}

{'fraction_non_alphanumeric': 0.16175156389633602, 'fraction_numerical': 0.0, 'mean_word_length': 6.17948717948718, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '3510419', 'n_tokens_mistral': 351, 'n_tokens_neox': 346, 'n_words': 72}