<commit_before>- title = 'Rising News'   if params[:sort].nil?
- title = 'Popular News'  if params[:sort] == 'popular'
- title = 'Latest News'   if params[:sort] == 'newest'

xml.instruct! :xml, version: '1.0'
xml.rss version: '2.0' do
  xml.channel do
    xml.title "Old Pluto | #{title}"
    xml.link links_path
    xml.language 'en'

    for link in @links
      xml.item do
        xml.title link.title
        xml.author link.author.name if link.author.present?
        xml.pubDate link.published_at.to_s(:rfc822)
        xml.link link.url<commit_msg>Fixed bug in link index rss template<commit_after>title = 'Rising News'
title = 'Popular News' if params[:sort] == 'popular'
title = 'Latest News'  if params[:sort] == 'newest'

xml.instruct! :xml, version: '1.0'
xml.rss version: '2.0' do
  xml.channel do
    xml.title "Old Pluto | #{title}"
    xml.link links_path
    xml.language 'en'

    for link in @links
      xml.item do
        xml.title link.title
        xml.author link.author.name if link.author.present?
        xml.pubDate link.published_at.to_s(:rfc822)
        xml.link link.url
{'fraction_non_alphanumeric': 0.13236627379873073, 'fraction_numerical': 0.012692656391659111, 'mean_word_length': 2.8333333333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 24}, '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': '4101935', 'n_tokens_mistral': 390, 'n_tokens_neox': 382, 'n_words': 106}