<commit_before>module DreddHooks
  module FileLoader
    def self.unique_paths(patterns)
      patterns.inject([]) { |paths, pattern|
        paths += Dir.glob(pattern)
      }.uniq
    end

    def self.load(patterns)
      self.unique_paths(patterns).each do |path|
        puts path
        require path
      end
    end
  end
end

<commit_msg>Refactor make method accessibilty explicit<commit_after>module DreddHooks
  module FileLoader

    def self.load(patterns)
      self.unique_paths(patterns).each do |path|
        puts path
        require path
      end
    end

    private

      def self.unique_paths(patterns)
        patterns.inject([]) { |paths, pattern|
          paths += Dir.glob(pattern)
        }.uniq
      end
  end
end


{'fraction_non_alphanumeric': 0.08277703604806408, 'fraction_numerical': 0.0, 'mean_word_length': 2.2327586206896552, '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': '495886', 'n_tokens_mistral': 235, 'n_tokens_neox': 231, 'n_words': 57}