<commit_before><div class="element_head">
  <div class="element_handle">
    <span class="element_icon"></span>
    <%- if element.description.nil? -%>
    <span class="warning icon" title="<%= _("Warning: Element '%{elementname}' is missing its description.") % {:elementname => element.name} %>"></span>
    <%- else -%>
    <%= render_icon("element_#{element.public? ? 'public' : 'draft'}") %>
    <%- end -%>
  </div>
  <span class="element_heading">
    <span class="preview_text_element_name"><%= element.display_name %></span>
    <span class="preview_text_quote"><%=h element.preview_text %></span>
  </span>
  <span class="ajax_folder" <%= element.trashed? ? 'style="display: none"' : '' %>>
    <%= image_tag(
      "alchemy/ajax_loader.gif",
      :style => "display: none",
      :id => "element_#{element.id}_folder_spinner",
      :class => "element_folder_spinner"
    ) %>
    <%= link_to_function(
      "",
      "Alchemy.toggleElement(#{element.id}, '#{fold_admin_element_path(element)}', '#{form_authenticity_token}', {title: '#{ _('Warning!') }', message: '#{ _('This element has unsaved changes. Do you really want to fold it?') }', okLabel: '#{ _('Yes') }', cancelLabel: '#{ _('No') }'})",
      :class => (element.folded? ? 'expand_element' : 'fold_element'),
      :title => (element.folded? ? _('show_element_content') : _('hide_element_content')),
      :id => "element_#{element.id}_folder"
    ) %>
  </span>
</div>
<commit_msg>Fixed element in trash shown folder button.<commit_after><div class="element_head">
  <div class="element_handle">
    <span class="element_icon"></span>
    <%- if element.description.nil? -%>
    <span class="warning icon" title="<%= _("Warning: Element '%{elementname}' is missing its description.") % {:elementname => element.name} %>"></span>
    <%- else -%>
    <%= render_icon("element_#{element.public? ? 'public' : 'draft'}") %>
    <%- end -%>
  </div>
  <span class="element_heading">
    <span class="preview_text_element_name"><%= element.display_name %></span>
    <span class="preview_text_quote"><%=h element.preview_text %></span>
  </span>
  <span class="ajax_folder" <%= element.trashed? ? 'style="display: none"'.html_safe : '' %>>
    <%= image_tag(
      "alchemy/ajax_loader.gif",
      :style => "display: none",
      :id => "element_#{element.id}_folder_spinner",
      :class => "element_folder_spinner"
    ) %>
    <%= link_to_function(
      "",
      "Alchemy.toggleElement(#{element.id}, '#{fold_admin_element_path(element)}', '#{form_authenticity_token}', {title: '#{ _('Warning!') }', message: '#{ _('This element has unsaved changes. Do you really want to fold it?') }', okLabel: '#{ _('Yes') }', cancelLabel: '#{ _('No') }'})",
      :class => (element.folded? ? 'expand_element' : 'fold_element'),
      :title => (element.folded? ? _('show_element_content') : _('hide_element_content')),
      :id => "element_#{element.id}_folder"
    ) %>
  </span>
</div>

{'fraction_non_alphanumeric': 0.21800947867298578, 'fraction_numerical': 0.0, 'mean_word_length': 4.286225402504472, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 69, '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': '363033', 'n_tokens_mistral': 1018, 'n_tokens_neox': 988, 'n_words': 182}