<commit_before>class Arena
  def initialize(width:, height:)
    @width  = width
    @height = height
  end

  def inbounds?(x_coord, y_coord)
    x_coord&.between?(0, max_x) && y_coord&.between?(0, max_y)
  end

  private

  def max_x
    @width - 1
  end

  def max_y
    @height - 1
  end
end<commit_msg>refactor arena, don't use lonely operator, makes compatible with Ruby >= 1.9<commit_after>class Arena
  def initialize(width:, height:)
    @max_x = width - 1
    @max_y = height - 1
  end

  def inbounds?(x_coord, y_coord)
    x_coord && x_coord.between?(0, @max_x) &&
    y_coord && y_coord.between?(0, @max_y)
  end
end
{'fraction_non_alphanumeric': 0.12082670906200318, 'fraction_numerical': 0.01589825119236884, 'mean_word_length': 3.1447368421052633, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '476454', 'n_tokens_mistral': 249, 'n_tokens_neox': 241, 'n_words': 62}