<commit_before>module Jarvis
  module Plugins
    class Directories
      attr_reader :plugins_directories
      def initialize
        @plugins_directories = []
        scan_directories
      end

      def scan_directories
        Dir['/media/www-dev/private/ruby/Jarvis/plugins/*/'].each do |directory|

          plugin_yml_exists = File.exist?(File.join(directory, 'plugin.yml'))
          init_rb_exists    = File.exist?(File.join(directory, 'init.rb'))

          if (plugin_yml_exists && init_rb_exists)
            @plugins_directories.push(directory)
          end

        end
      end
    end<commit_msg>fix hard coded path<commit_after>module Jarvis
  module Plugins
    class Directories
      attr_reader :plugins_directories
      def initialize
        @plugins_directories = []
        scan_directories
      end

      def scan_directories
        Dir['../plugins/*/'].each do |directory|

          plugin_yml_exists = File.exist?(File.join(directory, 'plugin.yml'))
          init_rb_exists    = File.exist?(File.join(directory, 'init.rb'))

          if (plugin_yml_exists && init_rb_exists)
            @plugins_directories.push(directory)
          end

        end
      end
    end
{'fraction_non_alphanumeric': 0.09105960264900662, 'fraction_numerical': 0.0, 'mean_word_length': 2.285326086956522, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '400546', 'n_tokens_mistral': 356, 'n_tokens_neox': 343, 'n_words': 66}