<commit_before>require_relative 'util'

module Sassconf
  module CoreExtensions
    module Object
      def is_string?
        false
      end

      def is_hash?
        false
      end
    end

    module String
      def self.included(base)
        base.extend(ClassMethods)
      end

      def is_string?
        true
      end

      def is_not_nil_or_empty?
        !(self.nil? || self.empty?)
      end

      def newline(count = 1, side = :right)
        count.times { side == :left ? self.insert(0, "\n") : self << "\n" }
        self << (block_given? ? yield : '')
      end

      def paragraph(count = 1, side = :right)
        count.times { side == :left ? self.insert(0, "\n\n") : self << "\n\n" }
        self << (block_given? ? yield : '')
      end

      def blank(count = 1, side = :right)
        count.times { side == :left ? self.insert(0, ' ') : self << ' ' }
        self << (block_given? ? yield : '')
      end

      module ClassMethods
        def empty
          ''
        end
      end
    end

    module Hash
      def is_hash?
        true
      end
    end
  end

  Object.include(Sassconf::CoreExtensions::Object)
  String.include(Sassconf::CoreExtensions::String)
  Hash.include(Sassconf::CoreExtensions::Hash)
end<commit_msg>Fixed include statements for most ruby versions.<commit_after>require_relative 'util'

module Sassconf
  module CoreExtensions
    module Object
      def is_string?
        false
      end

      def is_hash?
        false
      end
    end

    module String
      def self.included(base)
        base.extend(ClassMethods)
      end

      def is_string?
        true
      end

      def is_not_nil_or_empty?
        !(self.nil? || self.empty?)
      end

      def newline(count = 1, side = :right)
        count.times { side == :left ? self.insert(0, "\n") : self << "\n" }
        self << (block_given? ? yield : '')
      end

      def paragraph(count = 1, side = :right)
        count.times { side == :left ? self.insert(0, "\n\n") : self << "\n\n" }
        self << (block_given? ? yield : '')
      end

      def blank(count = 1, side = :right)
        count.times { side == :left ? self.insert(0, ' ') : self << ' ' }
        self << (block_given? ? yield : '')
      end

      module ClassMethods
        def empty
          ''
        end
      end
    end

    module Hash
      def is_hash?
        true
      end
    end
  end
end

class Object
    include Sassconf::CoreExtensions::Object
end

class String
    include Sassconf::CoreExtensions::String
end

class Hash
   include Sassconf::CoreExtensions::Hash
end
{'fraction_non_alphanumeric': 0.11474778590681556, 'fraction_numerical': 0.004620716211012707, 'mean_word_length': 1.8486842105263157, 'pattern_counts': {'":': 0, '<': 27, '<?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': '3374199', 'n_tokens_mistral': 825, 'n_tokens_neox': 790, 'n_words': 211}