<commit_before>%li{id: "#{list.id}"}
  %span.name
    = link_to wrap(list.name), list_path(list.id)
    - if list.private?
      %i.icon-lock

    %span.item-count
    | #{pluralize(list.items.size, 'item')}

    %span.timestamp
      Updated #{time_ago_in_words(list.updated_at)} ago.

    - if signed_in? && current_user?(list.user)
      = link_to "delete", list, method: :delete, |
        data: { confirm: "You sure?" },          |
        title: list.name                         |<commit_msg>Remove list delete link for lists with items.<commit_after>%li{id: "#{list.id}"}
  %span.name
    = link_to wrap(list.name), list_path(list.id)
    - if list.private?
      %i.icon-lock

    %span.item-count
    | #{pluralize(list.items.size, 'item')}

    %span.timestamp
      Updated #{time_ago_in_words(list.updated_at)} ago.

    - if signed_in? && current_user?(list.user) && list.items.count == 0
      = link_to "delete", list, method: :delete, |
        data: { confirm: "You sure?" },          |
        title: list.name                         |
{'fraction_non_alphanumeric': 0.16018957345971563, 'fraction_numerical': 0.0009478672985781991, 'mean_word_length': 2.2693498452012384, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3927816', 'n_tokens_mistral': 365, 'n_tokens_neox': 359, 'n_words': 69}