<commit_before>module NotificationsHelper
  include IconsHelper

  def notification_icon(notification)
    if notification.disabled?
      icon('volume-off', class: 'ns-mute')
    elsif notification.participating?
      icon('volume-down', class: 'ns-part')
    elsif notification.watch?
      icon('volume-up', class: 'ns-watch')
    else
      icon('circle-o', class: 'ns-default')
    end
  end

  def notification_list_item(notification_level)
    case notification_level
      when Notification::N_DISABLED
        content_tag(:li) do
          icon('microphone-slash') do
            'Disabled'
          end
        end
      when Notification::N_PARTICIPATING
        content_tag(:li) do
          icon('volume-up') do
            'Participating'
          end
        end
      when Notification::N_WATCH
        content_tag(:li) do
          icon('globe') do
            'Watch'
          end
        end
      when Notification::N_MENTION
        content_tag(:li) do
          icon('at') do
            'Mention'
          end
        end
      else
        # do nothing
    end
  end
end<commit_msg>Fixed notification level list item helper.<commit_after>module NotificationsHelper
  include IconsHelper

  def notification_icon(notification)
    if notification.disabled?
      icon('volume-off', class: 'ns-mute')
    elsif notification.participating?
      icon('volume-down', class: 'ns-part')
    elsif notification.watch?
      icon('volume-up', class: 'ns-watch')
    else
      icon('circle-o', class: 'ns-default')
    end
  end

  def notification_list_item(notification_level)
    case notification_level
      when Notification::N_DISABLED
        content_tag(:li) do
          icon('microphone-slash')
          'Disabled'
        end
      when Notification::N_PARTICIPATING
        content_tag(:li) do
          icon('volume-up')
          'Participating'
        end
      when Notification::N_WATCH
        content_tag(:li) do
          icon('globe')
          'Watch'
        end
      when Notification::N_MENTION
        content_tag(:li) do
          icon('at')
          'Mention'
        end
      else
        # do nothing
    end
  end
end
{'fraction_non_alphanumeric': 0.09241379310344827, 'fraction_numerical': 0.0, 'mean_word_length': 2.060478199718706, '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': '4720634', 'n_tokens_mistral': 630, 'n_tokens_neox': 611, 'n_words': 142}