<commit_before>import Piece, Move

class Board(object):
    """Manipulates the chess board"""
    def __init__(self):
        """Calls create_board method to make the initialize the board when Board is instantiated"""
        self.main_board = []
        Move.set_new_game(self.main_board)

    def __repr__(self):
        """Formats how the board will be displayed. Displays rank and file letters/numbers and pieces"""
        disp = u"  1 2 3 4 5 6 7 8\n"
        for row in xrange(8):
            disp += chr(ord('A') + row) + ' '
            for col in xrange(8):
                disp += unicode(self.main_board[row][col]) + ' '

            disp += '\n'

        return disp.encode('utf8')

def test():
    new = Board()
    print new

test()<commit_msg>Found out that you can't print out main_board directly due to ASCII encoding problems. Have to run print directly on the Board instance.<commit_after>import Piece, Move

class Board(object):
    """Manipulates the chess board"""
    def __init__(self):
        """Calls create_board method to make the initialize the board when Board is instantiated"""
        self.main_board = []
        Move.set_new_game(self.main_board)

    def __repr__(self):
        """Formats how the board will be displayed. Displays rank and file letters/numbers and pieces"""
        disp = u"  1 2 3 4 5 6 7 8\n"
        for row in xrange(8):
            disp += chr(ord('A') + row) + ' '
            for col in xrange(8):
                disp += unicode(self.main_board[row][col]) + ' '

            disp += '\n'

        return disp.encode('utf8')

def test():
    new = Board()
    print new


{'fraction_non_alphanumeric': 0.11437308868501529, 'fraction_numerical': 0.01345565749235474, 'mean_word_length': 2.3319755600814664, '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': '542676', 'n_tokens_mistral': 510, 'n_tokens_neox': 473, 'n_words': 172}