<commit_before><% if controller_name == 'albums' %>
  <%= link_to raw('<svg class="icon"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-rrss-flickr"></use></svg>'),
    flickr_update_album_path(item), title: "Flickr update" %>
<% end %>
<% if ['activities', 'publications', 'albums', 'photos'].include?(controller_name) %>
  <% if can?(:make_featured, item) && item.not_featured? %>
    <%= link_to raw('<svg class="icon" data-type="Make featured"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-star_outline"></use></svg>'),
      [:make_featured, item], method: :patch, remote: true, class: "MakeFeatured",
      title: "Make featured" %><commit_msg>Allow featuring videos and graphics<commit_after><% if controller_name == 'albums' %>
  <%= link_to raw('<svg class="icon"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-rrss-flickr"></use></svg>'),
    flickr_update_album_path(item), title: "Flickr update" %>
<% end %>
<% if ['activities', 'publications', 'albums', 'photos', 'videos', 'graphics'].include?(controller_name) %>
  <% if can?(:make_featured, item) && item.not_featured? %>
    <%= link_to raw('<svg class="icon" data-type="Make featured"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-star_outline"></use></svg>'),
      [:make_featured, item], method: :patch, remote: true, class: "MakeFeatured",
      title: "Make featured" %>
{'fraction_non_alphanumeric': 0.2250351617440225, 'fraction_numerical': 0.014064697609001406, 'mean_word_length': 5.941463414634146, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '7388272', 'n_tokens_mistral': 532, 'n_tokens_neox': 487, 'n_words': 88}