<commit_before>-if @user.can_edit?(@notebook) || @user.admin? || (@notebook.resources && @notebook.resources.count > 0)
  div.externalResources
    span.externalResourcesTitle #{GalleryConfig.external_resources_title}
    -if @user.can_edit?(@notebook) || @user.admin?
      a.glyphicon.glyphicon-plus.tooltips.add-icon href="#" id="add_external_resource" title="Add #{GalleryConfig.external_resources_label}"
        span.sr-only Add New #{GalleryConfig.external_resources_label}
    -notebook.resources.each do |resource|
      li id="resource-#{resource.id}"
        a href="#{resource.href}" target="_blank" ref="external" #{resource.title}
        -if @user.can_edit?(@notebook) || @user.admin?
          a.glyphicon.glyphicon-trash.tooltips.delete-icon href="#" title="Delete #{GalleryConfig.external_resources_label}"
            span.sr-only Delete #{GalleryConfig.external_resources_label} #{resource.title}<commit_msg>Make the '+' icon for external resources ignored by screen readers<commit_after>-if @user.can_edit?(@notebook) || @user.admin? || (@notebook.resources && @notebook.resources.count > 0)
  div.externalResources
    span.externalResourcesTitle #{GalleryConfig.external_resources_title}
    -if @user.can_edit?(@notebook) || @user.admin?
      a.tooltips.add-icon href="#" id="add_external_resource" title="Add #{GalleryConfig.external_resources_label}"
        span.glyphicon.glyphicon-plus aria-hidden="true"
        span.sr-only Add New #{GalleryConfig.external_resources_label}
    -notebook.resources.each do |resource|
      li id="resource-#{resource.id}"
        a href="#{resource.href}" target="_blank" ref="external" #{resource.title}
        -if @user.can_edit?(@notebook) || @user.admin?
          a.glyphicon.glyphicon-trash.tooltips.delete-icon href="#" title="Delete #{GalleryConfig.external_resources_label}"
            span.sr-only Delete #{GalleryConfig.external_resources_label} #{resource.title}
{'fraction_non_alphanumeric': 0.1478619268418341, 'fraction_numerical': 0.0010303967027305513, 'mean_word_length': 4.61271676300578, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '405631', 'n_tokens_mistral': 597, 'n_tokens_neox': 581, 'n_words': 94}