<commit_before><%
  # NOTE: this file depends on constants defined in Rakefile

  require 'history'
  require 'date'
  require 'time'
%>
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
  <title><%= PROJECT_NAME %></title>
  <link><%= PROJECT_URL %></link>
  <description><%= PROJECT_DETAIL %></description>
<%
  @history[0,3].each do |entry|
    link = HISTORY_URL + '#' + entry['Version'].to_html_anchor

    stamp = Time.parse entry['Date'].to_s
    rfc822 = stamp.strftime "%a, %d %b %Y 00:00:00 %Z"
%>
  <item><commit_msg>only put newest release info in RSS feed<commit_after><%
  # NOTE: this file depends on constants defined in Rakefile

  require 'history'
  require 'date'
%>
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
  <title><%= PROJECT_NAME %></title>
  <link><%= PROJECT_URL %></link>
  <description><%= PROJECT_DETAIL %></description>
<%
  @history[0,1].each do |entry|
    link = HISTORY_URL + '#' + entry['Version'].to_html_anchor

    stamp = Time.parse entry['Date'].to_s
    rfc822 = stamp.strftime "%a, %d %b %Y 00:00:00 %Z"
%>
  <item>
{'fraction_non_alphanumeric': 0.19384057971014493, 'fraction_numerical': 0.028985507246376812, 'mean_word_length': 4.364077669902913, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 2, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5642019', 'n_tokens_mistral': 438, 'n_tokens_neox': 410, 'n_words': 102}