<commit_before>require 'pathname'

module FasterPath
  module MonkeyPatches
    # rubocop:disable Metrics/CyclomaticComplexity
    def self._ruby_core_file!
      ::File.class_eval do
        def self.basename(pth, ext = '')
          pth = pth.to_path if pth.respond_to? :to_path
          raise TypeError unless pth.is_a?(String) && ext.is_a?(String)
          FasterPath.basename(pth, ext)
        end

        def self.extname(pth)
          pth = pth.to_path if pth.respond_to? :to_path
          raise TypeError unless pth.is_a? String
          FasterPath.extname(pth)
        end

        def self.dirname(pth)
          pth = pth.to_path if pth.respond_to? :to_path<commit_msg>Make Rubocop happy<commit_after>require 'pathname'

module FasterPath
  module MonkeyPatches
    # rubocop:disable Metrics/CyclomaticComplexity
    # rubocop:disable Metrics/PerceivedComplexity
    def self._ruby_core_file!
      ::File.class_eval do
        def self.basename(pth, ext = '')
          pth = pth.to_path if pth.respond_to? :to_path
          raise TypeError unless pth.is_a?(String) && ext.is_a?(String)
          FasterPath.basename(pth, ext)
        end

        def self.extname(pth)
          pth = pth.to_path if pth.respond_to? :to_path
          raise TypeError unless pth.is_a? String
          FasterPath.extname(pth)
        end

        def self.dirname(pth)
          pth = pth.to_path if pth.respond_to? :to_path
{'fraction_non_alphanumeric': 0.0861948142957253, 'fraction_numerical': 0.0, 'mean_word_length': 2.457627118644068, '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': '3300708', 'n_tokens_mistral': 500, 'n_tokens_neox': 493, 'n_words': 101}