<commit_before>atom_feed do |feed|
  feed.title @blog.title
  feed.updated @blog_posts.maximum('blog_posts.updated_at')
  @blog_posts.each do |post|
    feed.entry post, url: blog_blog_post_url(@blog,post) do |entry|
      entry.title post.title
      entry.content post.body

      entry.author do |author|
        author.name post.user.fullname
      end
    end
  end
end<commit_msg>fix atom on blogs with no entries<commit_after>atom_feed do |feed|
  feed.title @blog.title
  feed.updated @blog_posts.any? ? @blog_posts.maximum('blog_posts.updated_at') : @blog.created_at
  @blog_posts.each do |post|
    feed.entry post, url: blog_blog_post_url(@blog,post) do |entry|
      entry.title post.title
      entry.content post.body

      entry.author do |author|
        author.name post.user.fullname
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10240963855421686, 'fraction_numerical': 0.0, 'mean_word_length': 3.218274111675127, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '343303', 'n_tokens_mistral': 282, 'n_tokens_neox': 277, 'n_words': 65}