<commit_before>xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0",
        "xmlns:atom"   => "http://www.w3.org/2005/Atom",
        "xmlns:itunes" => "http://www.itunes.com/dtds/podcast-1.0.dtd",
        "xmlns:media"  => "http://search.yahoo.com/mrss/",
        "xmlns:dc"     => "http://purl.org/dc/elements/1.1/" do
  xml.channel do
    xml.title       @title
    xml.description @description
    xml.link        root_url
    xml.copyright   @copyright
    xml.language    "ja"

    xml.itunes :author,   @author
    xml.itunes :image,    :href => @art_work_url
    xml.itunes :explicit, "clean"
    xml.itunes :owner do
      xml.itunes :name,  "<NAME>"
      xml.itunes :email, "<EMAIL>"
    end
    xml.itunes :category, :text => "Education"

    @episodes.each do |episode|
      description = ActionView::Base.full_sanitizer.sanitize(Kramdown::Document.new(episode.description, input: 'GFM').to_html).strip
      xml.item do
        xml.title        episode.title
	xml.description  description
        xml.link         "#{@base_url}#{episode.url}"
        xml.guid({:isPermaLink => "false"}, "#{@base_url}#{episode.url}")
        xml.itunes       :explicit, "clean"
        xml.pubDate       episode.published_at.rfc2822
        xml.enclosure({
	  :url    => "#{@base_url}#{episode.url}.mp3",
	  :length => episode.filesize,
	  :type   => "audio/mpeg"}
	)
        xml.itunes       :duration, episode.duration
      end
    end
  end
end<commit_msg>Add keywords, summary, and media params to iTunes RSS<commit_after>xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0",
        "xmlns:atom"   => "http://www.w3.org/2005/Atom",
        "xmlns:itunes" => "http://www.itunes.com/dtds/podcast-1.0.dtd",
        "xmlns:media"  => "http://search.yahoo.com/mrss/",
        "xmlns:dc"     => "http://purl.org/dc/elements/1.1/" do
  xml.channel do
    xml.title       @title
    xml.description @description
    xml.link        root_url
    xml.copyright   @copyright
    xml.language    "ja"

    xml.atom :link, :href => "http://dojocast.superfeedr.com/",
                    :rel  => "hub"
    xml.atom :link, :href => "https://coderdojo.jp/podcasts.rss",
                    :rel  => "self",
                    :type => "application/rss+xml"
    xml.media :thumbnail, :url => "https://coderdojo.jp/img/logo.png"
    xml.media :keywords, "programming,education,opensource,community,coderdojo,software,development"
    xml.media :category, "Technology", :scheme => "http://www.itunes.com/dtds/podcast-1.0.dtd"

    xml.itunes :author,   @author
    xml.itunes :keywords, "programming,education,opensource,community,coderdojo,software,development"
    xml.itunes :subtitle, @description
    xml.itunes :summary,  "CoderDojo コミュニティに関わる方々をハイライトする教育系ポッドキャストです。"
    xml.itunes :image,    :href => @art_work_url
    xml.itunes :explicit, "clean"
    xml.itunes :owner do
      xml.itunes :name,  "<NAME>"
      xml.itunes :email, "<EMAIL>"
    end
    xml.itunes :category, :text => "Education"

    @episodes.each do |episode|
      description = ActionView::Base.full_sanitizer.sanitize(Kramdown::Document.new(episode.description, input: 'GFM').to_html).strip
      xml.item do
        xml.title        episode.title
	xml.description  description
        xml.link         "#{@base_url}#{episode.url}"
        xml.guid({:isPermaLink => "false"}, "#{@base_url}#{episode.url}")
        xml.itunes       :explicit, "clean"
        xml.pubDate       episode.published_at.rfc2822
        xml.enclosure({
	  :url    => "#{@base_url}#{episode.url}.mp3",
	  :length => episode.filesize,
	  :type   => "audio/mpeg"}
	)
        xml.itunes       :duration, episode.duration
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.16006467259498788, 'fraction_numerical': 0.010239827539746699, 'mean_word_length': 2.5555555555555554, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 38, 'https://': 2, 'lorem ipsum': 0, 'www.': 5, 'xml': 67}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4873445', 'n_tokens_mistral': 1382, 'n_tokens_neox': 1333, 'n_words': 221}