<commit_before>module EventsHelper
  def load_more_events_btn(events, params={})
    link_to_next_page events, t('events.load_more'),
      params: params,
      remote: true,
      data: { disable_with: "<i class='fa fa-spinner fa-spin'></i>", behavior: 'events-pagination' },
      class: 'btn'
  end

  def badge_for_event(event, user)
    'badge-info' if event.user_opted_in?(user)
  end

<<<<<<< HEAD
  def format_description(description)
    simple_format(auto_link description)
=======
  def label_for_event_state(event)
    state = t "activerecord.attributes.event.state/" + event.aasm.current_state.to_s
    state_class = event.pending? ? 'label' : 'label label-success'
    content_tag(:span, state, class: state_class)
>>>>>>> 0e4e04f... fix ngo event view, make state more meaninful (fixes #120, ref #112)
  end<commit_msg>messing around with git yolo<commit_after>module EventsHelper
  def load_more_events_btn(events, params={})
    link_to_next_page events, t('events.load_more'),
      params: params,
      remote: true,
      data: { disable_with: "<i class='fa fa-spinner fa-spin'></i>", behavior: 'events-pagination' },
      class: 'btn'
  end

  def badge_for_event(event, user)
    'badge-info' if event.user_opted_in?(user)
  end

  def format_description(description)
    simple_format(auto_link description)
  end
  def label_for_event_state(event)
    state = t "activerecord.attributes.event.state/" + event.aasm.current_state.to_s
    state_class = event.pending? ? 'label' : 'label label-success'
    content_tag(:span, state, class: state_class)
  end
{'fraction_non_alphanumeric': 0.1302149178255373, 'fraction_numerical': 0.006321112515802781, 'mean_word_length': 4.276666666666666, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '2106153', 'n_tokens_mistral': 547, 'n_tokens_neox': 530, 'n_words': 118}