<commit_before>feed.updated(problems.first.try(:created_at) || Time.now)

for problem in problems
  notice = problem.notices.first

  feed.entry(problem, :url => app_problem_url(problem.app.to_param, problem.to_param)) do |entry|
    entry.title "[#{ problem.where }] #{problem.message.to_s.truncate(27)}"
    entry.author do |author|
      author.name "#{ problem.app.name } [#{ problem.environment }]"
    end
    if notice
      entry.summary(notice_atom_summary(notice), :type => "html")
    end
  end
end<commit_msg>Prefer .each over for..in..<commit_after>feed.updated(problems.first.try(:created_at) || Time.now)

problems.each do |problem|
  notice = problem.notices.first

  feed.entry(problem, :url => app_problem_url(problem.app.to_param, problem.to_param)) do |entry|
    entry.title "[#{ problem.where }] #{problem.message.to_s.truncate(27)}"
    entry.author do |author|
      author.name "#{ problem.app.name } [#{ problem.environment }]"
    end
    if notice
      entry.summary(notice_atom_summary(notice), :type => "html")
    end
  end
end
{'fraction_non_alphanumeric': 0.1529745042492918, 'fraction_numerical': 0.003777148253068933, 'mean_word_length': 3.976525821596244, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1441156', 'n_tokens_mistral': 373, 'n_tokens_neox': 354, 'n_words': 65}