<commit_before>class Yeah::Game
  attr_reader :display, :keyboard, :mouse, :space

  class << self
    attr_accessor :title, :space

    private

    def inherited(klass)
      subclasses << klass

      super
    end

    def subclasses
      @@subclasses ||= []
    end

    def display
      @display ||= Struct.new(:size).new
    end
  end

  def initialize
    @display = Yeah::Display.new(self.class.display.to_h)<commit_msg>Remove Game::display hash configuration in favor of flat configuration<commit_after>class Yeah::Game
  attr_reader :display, :keyboard, :mouse, :space

  class << self
    attr_accessor :title, :display_size, :space

    def display_options
      {
        size: @display_size
      }
    end

    private

    def inherited(klass)
      subclasses << klass

      super
    end

    def subclasses
      @@subclasses ||= []
    end
  end

  def initialize
    @display = Yeah::Display.new(self.class.display_options)
{'fraction_non_alphanumeric': 0.0970464135021097, 'fraction_numerical': 0.0, 'mean_word_length': 2.65, 'pattern_counts': {'":': 0, '<': 11, '<?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': '64211', 'n_tokens_mistral': 295, 'n_tokens_neox': 281, 'n_words': 74}