<commit_before>import widget

class Checker(object):
    __board = widget.Board()

    def __init__(self, translate = False):
        self.__translate = translate

    def check_move(self, old , netw = None):
        "Checks whether a given move is legal"
        if new == None:
            old, new = old

        return self.__board.check_move(old, new)

    def make_move(self, old, new = None):
        '''Updates the board state, without checking the move's legality'''
        if new == None:
            old, new = old

        self.__board.move_piece(old, new)<commit_msg>fix a typo<commit_after>import widget

class Checker(object):
    __board = widget.Board()

    def __init__(self, translate = False):
        self.__translate = translate

    def check_move(self, old , new = None):
        "Checks whether a given move is legal"
        if new == None:
            old, new = old

        return self.__board.check_move(old, new)

    def make_move(self, old, new = None):
        '''Updates the board state, without checking the move's legality'''
        if new == None:
            old, new = old

        self.__board.move_piece(old, new)
{'fraction_non_alphanumeric': 0.10189982728842832, 'fraction_numerical': 0.0, 'mean_word_length': 2.3400576368876083, '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': '5849438', 'n_tokens_mistral': 341, 'n_tokens_neox': 327, 'n_words': 111}