<commit_before>require 'mustache'

module TicTacToe
  module View

    class Board < Mustache
      attr_reader :board

      def initialize(board)
        @board = board
      end

      def positions
        board.map.with_index do |mark, index|
          {:mark => mark,
           :index => index,
           :beginrow => is_row_start?(index),
           :endrow =>   is_row_end?(index)}
        end
      end

      def is_row_start(index)
        (index % 3) == 0
      end

      def is_row_end(index)
        (index % 3) == 2
      end
    end

  end
end
<commit_msg>Chase out last naming bug in views<commit_after>require 'mustache'

module TicTacToe
  module View

    class Board < Mustache
      attr_reader :board

      def initialize(board)
        @board = board
      end

      def positions
        board.map.with_index do |mark, index|
          {:mark => mark,
           :index => index,
           :beginrow => is_row_start?(index),
           :endrow =>   is_row_end?(index)}
        end
      end

      def is_row_start?(index)
        (index % 3) == 0
      end

      def is_row_end?(index)
        (index % 3) == 2
      end
    end

  end
end

{'fraction_non_alphanumeric': 0.09207161125319693, 'fraction_numerical': 0.0068201193520886615, 'mean_word_length': 1.6621315192743764, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6513610', 'n_tokens_mistral': 389, 'n_tokens_neox': 373, 'n_words': 100}