<commit_before>module Beatup
  VERSION = '0.0.1'

  module Listener

    def listen_to klass, event_name, method_name = nil, &callback
      if method_name && callback
        raise ArgumentError, "You can't specify both callback and method_name at once!"
      end

      callbacks = (klass.__BEATUP_CALLBACKS__[event_name] ||= [])
      callbacks << (method_name ?  self.method(method_name) : callback)
      self
    end

  end

  # Your code goes here...

  module Triggerable

    class << self
      attr_accessor :__BEATUP_CALLBACKS__

      def included mod
        mod.__BEATUP_CALLBACKS__ = {}
      end

    end
<commit_msg>remove needless comment<commit_after>module Beatup
  VERSION = '0.0.1'

  module Listener

    def listen_to klass, event_name, method_name = nil, &callback
      if method_name && callback
        raise ArgumentError, "You can't specify both callback and method_name at once!"
      end

      callbacks = (klass.__BEATUP_CALLBACKS__[event_name] ||= [])
      callbacks << (method_name ?  self.method(method_name) : callback)
      self
    end

  end

  module Triggerable

    class << self
      attr_accessor :__BEATUP_CALLBACKS__

      def included mod
        mod.__BEATUP_CALLBACKS__ = {}
      end

    end

{'fraction_non_alphanumeric': 0.07827476038338659, 'fraction_numerical': 0.004792332268370607, 'mean_word_length': 2.6852941176470586, 'pattern_counts': {'":': 0, '<': 11, '<?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': '7409512', 'n_tokens_mistral': 407, 'n_tokens_neox': 389, 'n_words': 104}