<commit_before>class Prime
  class Table
    attr_accessor :count

    def initialize count
      raise ArgumentError.new("Table size needs to be at least 2x2") unless count > 1
      self.count = count
    end

    def primes
      @primes ||= (2...Float::INFINITY).inject([]) do |results, i|
        results.push(i) if i.prime?
        break results if results.length >= count
        results
      end
    end

    def products
      primes.map{ |x| primes.map{ |y| x*y } }
    end

    def print
      Printer.new(self).print
    end
  end
end<commit_msg>Refactored a count attr<commit_after>class Prime
  class Table
    def initialize count
      raise ArgumentError.new("Table size needs to be at least 2x2") unless count > 1
      @count = count
    end

    def primes
      @primes ||= (2...Float::INFINITY).inject([]) do |results, i|
        results.push(i) if i.prime?
        break results if results.length >= @count
        results
      end
    end

    def products
      primes.map{ |x| primes.map{ |y| x*y } }
    end

    def print
      Printer.new(self).print
    end
  end
end
{'fraction_non_alphanumeric': 0.09827115559599636, 'fraction_numerical': 0.007279344858962694, 'mean_word_length': 2.125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3340616', 'n_tokens_mistral': 357, 'n_tokens_neox': 341, 'n_words': 112}