<commit_before>module Lingr::Bot
  class Replay

    def self.send(message)
      new(message).text
    end

    def initialize(message)
      text = nil
      plugins.each do |plugin|
        text ||= plugin.replay message
      end
      text
    end

    def plugins
      @@Plugins ||= load_plugin
    end

    def load_plugin
      plugins = []
      Dir::glob("plugins/*.rb").each do |file|
        Dir[File.join(File.expand_path('plugins'), '*.rb')]
        plugins << const_get(Rinne.camelize(File.basename(file, '.rb')))
      end
      plugins
    end

  end
end<commit_msg>fix bugs<commit_after>module Lingr::Bot
  class Replay

    def self.send(message)
      new(message).text
    end

    def initialize(message)
      text = nil
      plugins.each do |plugin|
        text ||= plugin.replay message
      end
      text
    end

    def plugins
      @@Plugins ||= load_plugin
    end

    def load_plugin
      plugins = []
      Dir::glob("plugins/*.rb").each do |file|
        Dir[File.join(File.expand_path('plugins'), '*.rb')]
        plugins << Module.const_get(Rinne.camelize(File.basename(file, '.rb')))
      end
      plugins
    end

  end
end
{'fraction_non_alphanumeric': 0.12051282051282051, 'fraction_numerical': 0.0, 'mean_word_length': 2.1394101876675604, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5289218', 'n_tokens_mistral': 384, 'n_tokens_neox': 369, 'n_words': 84}