<commit_before>module EventsHelper

  def event_image(event)
    if event.logo && event.logo != ''
      image_tag event.logo, skip_pipeline: true
    else
      image_tag "event-default.png"
    end
  end

  def breadcrumb_link_according_to_user_status
    if @event && @event.organizer_id == current_user.id
      link_to 'Your Events', user_path(current_user)
    elsif current_user.admin?
      link_to 'Admin', admin_path
    else
      link_to 'Events', events_path
    end
  end
  
end<commit_msg>Fixes the breadcrumb after breaking it in previous commit<commit_after>module EventsHelper

  def event_image(event)
    if event.logo && event.logo != ''
      image_tag event.logo, skip_pipeline: true
    else
      image_tag "event-default.png"
    end
  end

  def breadcrumb_link_according_to_user_status
    if current_user
      if @event && @event.organizer_id == current_user.id
        link_to 'Your Events', user_path(current_user)
      elsif current_user.admin?
        link_to 'Admin', admin_path
      else
        link_to 'Events', events_path
      end
    else
      link_to 'Events', events_path
    end
  end

end
{'fraction_non_alphanumeric': 0.07475813544415127, 'fraction_numerical': 0.0, 'mean_word_length': 2.951388888888889, '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': '1180058', 'n_tokens_mistral': 368, 'n_tokens_neox': 363, 'n_words': 90}