<commit_before>class Object
  def mock_to_path(path)
    obj = double('path')
    obj.should_receive(:to_path).and_return(path)
    obj
  end
end
<commit_msg>Don't use RSpec's "double" in the lib/ directory<commit_after>require 'mspec/mocks/proxy'

class Object
  def mock_to_path(path)
    obj = MockObject.new('path')
    obj.should_receive(:to_path).and_return(path)
    obj
  end
end

{'fraction_non_alphanumeric': 0.1134020618556701, 'fraction_numerical': 0.0, 'mean_word_length': 4.328767123287672, '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': '5195781', 'n_tokens_mistral': 145, 'n_tokens_neox': 140, 'n_words': 29}