<commit_before>class SeenPlugin
  include NinjaPlugin

  match /seen (.+)/

  def usage
    "!seen <nick>"
  end

  def execute(m, nick)
    return if m.channel.nil?

    rnick = m.user.nick

    if rnick.downcase == nick.downcase
      m.reply "#{rnick}: you need a new brain!"
      return
    end

    user = nil
    m.channel.users.each do |u, level|
      if u.nick.downcase == nick.downcase
        user = u
        break
      end
    end

    if user
      m.reply "#{rnick}: you need new glasses 8-)"
    elsif user = Channel.get_user(m.channel.name, nick, false)
      m.reply "#{rnick}: Last time I saw #{nick} was #{user.last_seen_at.ago_in_words}. it said: #{user.last_quit_message}"
    else
      m.reply "I've never seen that guy #{nick} over here."
    end
  end
end
<commit_msg>set timezone correctly<commit_after>class SeenPlugin
  include NinjaPlugin

  match /seen (.+)/

  def usage
    "!seen <nick>"
  end

  def execute(m, nick)
    return if m.channel.nil?

    localize!

    rnick = m.user.nick

    if rnick.downcase == nick.downcase
      m.reply "#{rnick}: you need a new brain!"
      return
    end

    user = nil
    m.channel.users.each do |u, level|
      if u.nick.downcase == nick.downcase
        user = u
        break
      end
    end

    if user
      m.reply "#{rnick}: you need new glasses 8-)"
    elsif user = Channel.get_user(m.channel.name, nick, false)
      m.reply "#{rnick}: Last time I saw #{nick} was #{user.last_seen_at.ago_in_words}. it said: #{user.last_quit_message}"
    else
      m.reply "I've never seen that guy #{nick} over here."
    end
  end
end

{'fraction_non_alphanumeric': 0.11695544554455446, 'fraction_numerical': 0.0012376237623762376, 'mean_word_length': 2.2535211267605635, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6489711', 'n_tokens_mistral': 574, 'n_tokens_neox': 550, 'n_words': 171}