<commit_before>class MessageDecorator < Draper::Decorator
  def icon_class
    return '' if model.nil?
    if model.created_at < Time.zone.now - 7.days
      'icon-ok'
    elsif model.created_at < Time.zone.now - 2.days
      'icon-warning-sign'
    else
      'i.icon-bolt'
    end
  end

  def created_at
    return '' if model.nil?
    helpers.l model.created_at, format: :short
  end
end
<commit_msg>developer: fix error icon class<commit_after>class MessageDecorator < Draper::Decorator
  def icon_class
    return '' if model.nil?
    if model.created_at < Time.zone.now - 7.days
      'icon-ok'
    elsif model.created_at < Time.zone.now - 2.days
      'icon-warning-sign'
    else
      'icon-bolt'
    end
  end

  def created_at
    return '' if model.nil?
    helpers.l model.created_at, format: :short
  end
end

{'fraction_non_alphanumeric': 0.10194174757281553, 'fraction_numerical': 0.0048543689320388345, 'mean_word_length': 2.5560344827586206, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1062178', 'n_tokens_mistral': 301, 'n_tokens_neox': 289, 'n_words': 70}