<commit_before>class Idle < Plugin

  def init(init)
    super
    # prevent multible initiation.
    if @@bot[:idle].nil?
      logger("INFO: INIT plugin #{self.class.name}.")
      @@bot[:ii] = self
    end
    return @@bot
  end

  def ticks(time)
    if @@bot[:cli].me.muted?
      if !@is_idle
        @timestamp_idle_started = Time.now.getutc
        @is_idle = true
      end
    else<commit_msg>fix ii<commit_after>class Idle < Plugin

  def init(init)
    super
    # prevent multible initiation.
    if @@bot[:idle].nil?
      logger("INFO: INIT plugin #{self.class.name}.")
      @@bot[:idle] = self
    end
    return @@bot
  end

  def ticks(time)
    if @@bot[:cli].me.muted?
      if !@is_idle
        @timestamp_idle_started = Time.now.getutc
        @is_idle = true
      end
    else
{'fraction_non_alphanumeric': 0.12983770287141075, 'fraction_numerical': 0.0, 'mean_word_length': 2.2601626016260163, 'pattern_counts': {'":': 0, '<': 5, '<?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': '297726', 'n_tokens_mistral': 294, 'n_tokens_neox': 282, 'n_words': 66}