<commit_before>module D20
  module CoreExtensions
    module IntegerExtensions
      def d20
        result = 0
        self.times do |n|
          result += rand(20) + 1
        end
        result
      end

      def d4
        result = 0
          self.times do |n|
          result += rand(4) + 1
        end
        result
      end

      def d6
        result = 0
        self.times do |n|
          result += rand(6) + 1
        end
        result
      end

      def d8
        result = 0
        self.times do |n|
          result += rand(8) + 1
        end
        result
      end

      def d10
        result = 0
        self.times do |n|
          result += rand(10) + 1
        end
      end

      def d12
        result = 0
        self.times do |n|
          result += rand(12) + 1
        end
        result
      end
    end
  end
end


class Integer
  include D20::CoreExtensions::IntegerExtensions
end
<commit_msg>bugfix<commit_after>module D20
  module CoreExtensions
    module IntegerExtensions
      def d20
        result = 0
        self.times do |n|
          result += rand(20) + 1
        end
        result
      end

      def d4
        result = 0
          self.times do |n|
          result += rand(4) + 1
        end
        result
      end

      def d6
        result = 0
        self.times do |n|
          result += rand(6) + 1
        end
        result
      end

      def d8
        result = 0
        self.times do |n|
          result += rand(8) + 1
        end
        result
      end

      def d10
        result = 0
        self.times do |n|
          result += rand(10) + 1
        end
        result
      end

      def d12
        result = 0
        self.times do |n|
          result += rand(12) + 1
        end
        result
      end
    end
  end
end


class Integer
  include D20::CoreExtensions::IntegerExtensions
end

{'fraction_non_alphanumeric': 0.06475583864118896, 'fraction_numerical': 0.036093418259023353, 'mean_word_length': 1.053376906318083, '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': '3191627', 'n_tokens_mistral': 601, 'n_tokens_neox': 548, 'n_words': 183}