<commit_before>atom_feed("xmlns:alaveteli" => "http://www.alaveteli.org/API/v2/RequestEvents/Atom") do |feed|
    feed.title("Events relating to #{@public_body.name}")
    feed.updated(@events.first.created_at)

    for event in @events
        feed.entry(event) do |entry|
            request = event.info_request
            
            entry.published(event.created_at)
            entry.tag!("alaveteli:event_type", event.event_type)
            entry.tag!("alaveteli:request_url", main_url(request_url(request)))
            entry.title(request.title)
            
            entry.content(event.outgoing_message.body, :type => 'text')
            
            entry.author do |author|
                author.name(request.user_name)
                if !request.user.nil?<commit_msg>Fix Atom version of api_body_request_events<commit_after>atom_feed("xmlns:alaveteli" => "http://www.alaveteli.org/API/v2/RequestEvents/Atom") do |feed|
    feed.title("Events relating to #{@public_body.name}")
    feed.updated(@events.first.created_at)

    for event in @events
        feed.entry(event) do |entry|
            request = event.info_request
            
            entry.updated(event.created_at.utc.iso8601)
            entry.tag!("alaveteli:event_type", event.event_type)
            entry.tag!("alaveteli:request_url", main_url(request_url(request)))
            entry.title(request.title)
            
            entry.content(event.outgoing_message.body, :type => 'text')
            
            entry.author do |author|
                author.name(request.user_name)
                if !request.user.nil?
{'fraction_non_alphanumeric': 0.12237330037082818, 'fraction_numerical': 0.003708281829419036, 'mean_word_length': 2.310838445807771, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6189453', 'n_tokens_mistral': 493, 'n_tokens_neox': 490, 'n_words': 69}