<commit_before>.results
  h1 Search Results #{params['q'].present? ? "- #{params['q']}" : ""}

  - if @results.empty?
    p No results found

  - if @search_festivals.present?
    h2 Festivals

  - if @search_future_events.present? 
    h2 Future Events
    - @search_future_events.each do |result|
      .result
        - unless result.image_link.blank?
          = image_tag result.image_link.thumb, alt: result.imageAlt, width: 225, height: 132, class: "post-image lazy-image", lazy: true
        = link_to "#{result.title}", result
        p.details 
          - unless result.dateend.blank?
            ' DATE: #{result.date.day.ordinalize} #{result.dateend.strftime("%b")} to #{result.dateend.day.ordinalize} #{result.dateend.strftime("%b %Y")}
          - else
            ' DATE: #{result.date.day.ordinalize} #{result.date.strftime("%b %Y")}
          - unless result.time.blank?
            '  - TIME: #{result.time}
        p #{result.description.html_safe}

        = link_to 'View event', result, class: "more"

  - if @search_blogs.present?
    h2 Blog Posts
    
  - if @search_venues.present?
    h2 Venues

  - if @search_past_events.present? 
    h2 Past Events
    - @search_past_events.each do |result|
      .result
        - unless result.image_link.blank?
          = image_tag result.image_link.thumb, alt: result.imageAlt, width: 225, height: 132, class: "post-image lazy-image", lazy: true
        = link_to "#{result.title}", result
        p.details 
          - unless result.dateend.blank?
            ' DATE: #{result.date.day.ordinalize} #{result.dateend.strftime("%b")} to #{result.dateend.day.ordinalize} #{result.dateend.strftime("%b %Y")}
          - else
            ' DATE: #{result.date.day.ordinalize} #{result.date.strftime("%b %Y")}
          - unless result.time.blank?
            '  - TIME: #{result.time}<commit_msg>Adds blogs and venues to search results<commit_after>.results
  h1 Search Results #{params['q'].present? ? "- #{params['q']}" : ""}

  - if @results.empty?
    p No results found

  - if @search_festivals.present?
    h2 Festivals

  - if @search_future_events.present? 
    h2 Future Events
    - @search_future_events.each do |result|
      .result
        - unless result.image_link.blank?
          = image_tag result.image_link.thumb, alt: result.imageAlt, width: 225, height: 132, class: "post-image lazy-image", lazy: true
        = link_to "#{result.title}", result
        p.details 
          - unless result.dateend.blank?
            ' DATE: #{result.date.day.ordinalize} #{result.dateend.strftime("%b")} to #{result.dateend.day.ordinalize} #{result.dateend.strftime("%b %Y")}
          - else
            ' DATE: #{result.date.day.ordinalize} #{result.date.strftime("%b %Y")}
          - unless result.time.blank?
            '  - TIME: #{result.time}
        p #{result.description.html_safe}

        = link_to 'View event', result, class: "more"

  - if @search_blogs.present?
    h2 Blog Posts
    - @search_blogs.each do |blog|
      .result
        h2 = link_to "#{blog.title}" ,blog_path(blog)
        - if blog.image.present?
          = image_tag blog.image.thumb, alt: blog.image_alt, width: 225, height: 132, class: "post-image, lazy: true blog-post-image"
        p.blog-date
          ' #{blog.date_published.day.ordinalize} #{blog.date_published.strftime("%B %Y")} 
          '  by #{blog.user.display_name}

    p #{blog.snippet}
    
  - if @search_venues.present?
    h2 Venues
    - @search_venues.each do |venue|
      .result
        - if venue.image.present?
          = image_tag(venue.image.large_thumb, alt: venue.image_alt)
        h4 = link_to "#{venue.name}", venue
        
        p #{venue.address}, #{venue.postcode}
        = link_to 'View venue details', venue, class: "more"

  - if @search_past_events.present? 
    h2 Past Events
    - @search_past_events.each do |result|
      .result
        - unless result.image_link.blank?
          = image_tag result.image_link.thumb, alt: result.imageAlt, width: 225, height: 132, class: "post-image lazy-image", lazy: true
        = link_to "#{result.title}", result
        p.details 
          - unless result.dateend.blank?
            ' DATE: #{result.date.day.ordinalize} #{result.dateend.strftime("%b")} to #{result.dateend.day.ordinalize} #{result.dateend.strftime("%b %Y")}
          - else
            ' DATE: #{result.date.day.ordinalize} #{result.date.strftime("%b %Y")}
          - unless result.time.blank?
            '  - TIME: #{result.time}
{'fraction_non_alphanumeric': 0.14808246508534692, 'fraction_numerical': 0.009753934825980935, 'mean_word_length': 2.425968109339408, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6586297', 'n_tokens_mistral': 1534, 'n_tokens_neox': 1447, 'n_words': 309}