<commit_before>class BasePiece:
  job = None
  def __init__(self, color):
    self.color = color

  def __str__(self):
    return self.color + "_" + self.job

  def get_moves(self):
    pass


class King(BasePiece):
  def __init__(self, color):
    BasePiece.__init__(self, color)
    self.job = 'king'


class Queen(BasePiece):
  def __init__(self, color):
    BasePiece.__init__(self, color)
    self.job = 'queen'

  
class Knight(BasePiece):
  def __init__(self, color):
    BasePiece.__init__(self, color)
    self.job = 'knight'


class Bishop(BasePiece):
  def __init__(self, color):
    BasePiece.__init__(self, color)
    self.job = 'bishop'


class Rook(BasePiece):
  def __init__(self, color):
    BasePiece.__init__(self, color)
    self.job = 'rook'

class Pawn(BasePiece):
  def __init__(self, color):
    BasePiece.__init__(self, color)
    self.job = 'pawn'


class Move:
  piece = None
  from_loc = None
  to_loc = None  

  def __init__(self, from_loc, to_loc, piece=None):
    self.piece = piece
    self.from_loc = from_loc
    self.to_loc = to_loc  

  def __str__(self):
    return str(self.from_loc) + "_to_" + str(self.to_loc)


class Space:
  def __init__(self, piece=None):
     self.piece = piece 
     self.danger_from_white = False
     self.danger_from_black = False
 
  def __str__(self):
    output = str(self.piece) if self.piece else '_'
    output += 'whitethreat' if str(self.danger_from_white) else ''
    output += 'blackthreat' if str(self.danger_from_black) else ''
    return output 

class Board:
  def __init__(self):
    # The indices are:  [[(0,0), (0,1), ... (0,7)],
    #                    [(1,0) (1,1) ... (1,7)],
    #                           ....<commit_msg>We do not need the piece in the Move object - it's the piece at the from_loc that moves.<commit_after>class BasePiece:
  job = None
  def __init__(self, color):
    self.color = color

  def __str__(self):
    return self.color + "_" + self.job

  def get_moves(self):
    pass


class King(BasePiece):
  def __init__(self, color):
    BasePiece.__init__(self, color)
    self.job = 'king'


class Queen(BasePiece):
  def __init__(self, color):
    BasePiece.__init__(self, color)
    self.job = 'queen'

  
class Knight(BasePiece):
  def __init__(self, color):
    BasePiece.__init__(self, color)
    self.job = 'knight'


class Bishop(BasePiece):
  def __init__(self, color):
    BasePiece.__init__(self, color)
    self.job = 'bishop'


class Rook(BasePiece):
  def __init__(self, color):
    BasePiece.__init__(self, color)
    self.job = 'rook'

class Pawn(BasePiece):
  def __init__(self, color):
    BasePiece.__init__(self, color)
    self.job = 'pawn'


class Move:
  from_loc = None
  to_loc = None  

  def __init__(self, from_loc, to_loc):
    self.from_loc = from_loc
    self.to_loc = to_loc  

  def __str__(self):
    return str(self.from_loc) + "_to_" + str(self.to_loc)


class Space:
  def __init__(self, piece=None):
     self.piece = piece 
     self.danger_from_white = False
     self.danger_from_black = False
 
  def __str__(self):
    output = str(self.piece) if self.piece else '_'
    output += 'whitethreat' if str(self.danger_from_white) else ''
    output += 'blackthreat' if str(self.danger_from_black) else ''
    return output 

class Board:
  def __init__(self):
    # The indices are:  [[(0,0), (0,1), ... (0,7)],
    #                    [(1,0) (1,1) ... (1,7)],
    #                           ....
{'fraction_non_alphanumeric': 0.13170873223092544, 'fraction_numerical': 0.006962576153176675, 'mean_word_length': 2.887260428410372, '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': '3906222', 'n_tokens_mistral': 1269, 'n_tokens_neox': 1217, 'n_words': 290}