<commit_before>xml.instruct! :xml, :version => "1.0"
xml.rss(:version => "2.0" ){
  xml.channel{
    xml.title("Feeds from admin_data #{@klass.name}")
    xml.link(request.host_with_port)
    xml.description("feeds from AdminData #{@klass.name}")
    xml.language('en-us')
    h = {:order => "#{@klass.primary_key} desc", :limit => 100}
    @klass.find(:all, h).each do |record|
      xml.item do
        xml.title("#{@klasss} id: #{record.id}")

        desc = AdminData::Util.label_values_pair_for(record, self).inject([]) do |sum, a|
          sum << "<p>#{a[0]}: #{a[1]}</p>"
        end.join

        xml.description(desc)
        xml.pubDate(record.created_at.strftime("%a, %d %b %Y %H:%M:%S %z"))
        xml.link(admin_data_on_k_path(:id => record, :klass => @klass.name))
        xml.guid(admin_data_on_k_path(:id => record, :klass => @klass.name))
      end
    end
  }
}<commit_msg>do not assume that model has created_at column<commit_after>xml.instruct! :xml, :version => "1.0"
xml.rss(:version => "2.0" ){
  xml.channel{
    xml.title("Feeds from admin_data #{@klass.name}")
    xml.link(request.host_with_port)
    xml.description("feeds from AdminData #{@klass.name}")
    xml.language('en-us')
    h = {:order => "#{@klass.primary_key} desc", :limit => 100}
    @klass.find(:all, h).each do |record|
      xml.item do
        xml.title("#{@klasss} id: #{record.id}")

        desc = AdminData::Util.label_values_pair_for(record, self).inject([]) do |sum, a|
          sum << "<p>#{a[0]}: #{a[1]}</p>"
        end.join

        xml.description(desc)
        d = record.respond_to?(:created_at) ?  record.created_at : Time.now
        xml.pubDate(d.strftime("%a, %d %b %Y %H:%M:%S %z"))
        xml.link(admin_data_on_k_path(:id => record, :klass => @klass.name))
        xml.guid(admin_data_on_k_path(:id => record, :klass => @klass.name))
      end
    end
  }
}
{'fraction_non_alphanumeric': 0.2017030335284726, 'fraction_numerical': 0.009579563597658328, 'mean_word_length': 3.1228070175438596, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 28}, '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': '241685', 'n_tokens_mistral': 704, 'n_tokens_neox': 714, 'n_words': 129}