<commit_before>class CompAI

  x = 1.0
  full_board = []
  10.times do
    y = 1.0
    10.times do
      full_board << ActiveRecord::Point.new(x,y)
      y+=1
    end
    x+=1
  end

  def initialize(board)
    @board = board
    @available_positions = full_board - @board.moves.map(&:position)
  end

  def new_move # returns a position
    case analyze
    when "random"
      @available_positions.sample
    when "educated guess"
      return left(@last_hit.position) if @available_positions.include?(left(@last_hit.position))
      return down(@last_hit.position) if @available_positions.include?(down(@last_hit.position))
      return right(@last_hit.position) if @available_positions.include?(right(@last_hit.position))<commit_msg>Update AI file to match master<commit_after>class CompAI

  x = 1.0
  @@full_board = []
  10.times do
    y = 1.0
    10.times do
      @@full_board << ActiveRecord::Point.new(x,y)
      y+=1
    end
    x+=1
  end

  def initialize(board)
    @board = board
    @available_positions = @@full_board - @board.moves.map(&:position)
  end

  def new_move # returns a position
    case analyze
    when "random"
      @available_positions.sample
    when "educated guess"
      return left(@last_hit.position) if @available_positions.include?(left(@last_hit.position))
      return down(@last_hit.position) if @available_positions.include?(down(@last_hit.position))
      return right(@last_hit.position) if @available_positions.include?(right(@last_hit.position))
{'fraction_non_alphanumeric': 0.11623246492985972, 'fraction_numerical': 0.013360053440213761, 'mean_word_length': 3.4583333333333335, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1858476', 'n_tokens_mistral': 500, 'n_tokens_neox': 476, 'n_words': 104}