<commit_before>module BigBrother
  class Ticker
    def self.schedule!
      EventMachine.add_periodic_timer(0.1, &method(:tick))
    end

    def self.tick
      BigBrother.clusters.values.select(&:needs_check?).each do |cluster|
        cluster.monitor_nodes
      end
    end
  end
end
<commit_msg>uses synchrony to run the ticker so each call is in a fiber.<commit_after>module BigBrother
  class Ticker
    def self.schedule!
      EM::Synchrony.add_periodic_timer(0.1, &method(:tick))
    end

    def self.tick
      BigBrother.clusters.values.select(&:needs_check?).each do |cluster|
        cluster.monitor_nodes
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.0876923076923077, 'fraction_numerical': 0.006153846153846154, 'mean_word_length': 2.9695121951219514, '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': '5868272', 'n_tokens_mistral': 216, 'n_tokens_neox': 203, 'n_words': 50}