<commit_before>module Donaghy
  class EventPublisher
    include Donaghy::Service

    class LowPriorityPublisher
      include Donaghy::Service
      include Celluloid
    end
    
    attr_reader :supervisor
    def initialize
      @supervisor = LowPriorityPublisher.supervise
    end

    def low_priority_trigger(path, opts = {})
      actor.async.root_trigger(path, opts)
    end

    def stop
      supervisor.terminate if supervisor.alive?
    end

    def alive?
      supervisor.alive?
    end
<commit_msg>use the alive? method instead of repeating yo-self [sic]<commit_after>module Donaghy
  class EventPublisher
    include Donaghy::Service

    class LowPriorityPublisher
      include Donaghy::Service
      include Celluloid
    end
    
    attr_reader :supervisor
    def initialize
      @supervisor = LowPriorityPublisher.supervise
    end

    def low_priority_trigger(path, opts = {})
      actor.async.root_trigger(path, opts)
    end

    def stop
      supervisor.terminate if alive?
    end

    def alive?
      supervisor.alive?
    end

{'fraction_non_alphanumeric': 0.05545112781954887, 'fraction_numerical': 0.0, 'mean_word_length': 2.685121107266436, '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': '1857187', 'n_tokens_mistral': 325, 'n_tokens_neox': 303, 'n_words': 80}