<commit_before>require "fakefs/safe"

module FakeFS
  class Pathname

    # FakeFS doesn't do this. Odd! So we must.
    def read(*args, &block)
      File.read(to_s, *args, &block)
    end

  end
end
<commit_msg>Patches to FakeFS::Pathname are only necessary for 1.9.3+.<commit_after>require "fakefs/safe"

module FakeFS
  if RUBY_VERSION >= "1.9.3"

    class Pathname

      # FakeFS doesn't do this. Odd! So we must.
      def read(*args, &block)
        File.read(to_s, *args, &block)
      end

    end

  end
end

{'fraction_non_alphanumeric': 0.11153846153846154, 'fraction_numerical': 0.011538461538461539, 'mean_word_length': 2.6690140845070425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3802204', 'n_tokens_mistral': 205, 'n_tokens_neox': 192, 'n_words': 57}