<commit_before>class Block
  attr_reader :x, :y

  def initialize(window, x, y)
    @block_image = Gosu::Image.new(window, "media/block_3.png", false)
    locate_at(x, y)
  end

  def locate_at(x, y)
    @x = x || rand * 640
    @y = y || rand * 480
  end

  def move(direction)
    case direction
      when 'up'
        @y -= 20;
      when 'down'
        @y += 20;
      when 'left'
        @x -= 20;
      when 'right'
        @x += 20;
    end

    @x %= 640
    @y %= 480
  end

  def draw
    @block_image.draw(x - @block_image.width / 2.0,
                      y - @block_image.height / 2.0,
                      z_pos = 1)
  end
end<commit_msg>Tweak messy grid layout.<commit_after>class Block
  attr_reader :x, :y

  def initialize(window, x, y)
    @block_image = Gosu::Image.new(window, "media/block_3.png", false)
    locate_at(x, y)
  end

  def locate_at(x, y)
    @x = x || rand * 640
    @y = y || rand * 480
  end

  def move(direction)
    case direction
      when 'up'
        @y -= 20;
      when 'down'
        @y += 20;
      when 'left'
        @x -= 20;
      when 'right'
        @x += 20;
    end

    @x %= 640
    @y %= 480
  end

  def draw
    @block_image.draw(x, y, z_pos = 1)
  end
end
{'fraction_non_alphanumeric': 0.13666121112929625, 'fraction_numerical': 0.03927986906710311, 'mean_word_length': 1.676148796498906, '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': '5672399', 'n_tokens_mistral': 522, 'n_tokens_neox': 464, 'n_words': 130}