<commit_before>types_bateau = {
    'porte-avion': 5,
    'croiseur': 4,
    'sous-marin': 3,
    'contre-torpilleur': 3,
    'torpilleur': 2
}

class Bateau:
    def __init__(self, type):
        self.type = type
        self.taille = types_bateau[type]
	self.is_placed = False

<commit_msg>Modification de la classe bateau avec ajout de set_position<commit_after>types_bateau = {
    'porte-avion': 5,
    'croiseur': 4,
    'sous-marin': 3,
    'contre-torpilleur': 3,
    'torpilleur': 2
}

class Bateau:
    def __init__(self, type):
        self.type = type
        self.taille = types_bateau[type]
	self.is_placed = False
	self.position = {}
	self.etat = True

    def set_position(self, x, y, orient):
    '''
    blabla
    '''
        
        position = {{x,y,e}} 
        if orient == 'haut':
            
        elif orient == 'bas':
            
        elif orient == 'gauche':
                
        else:
        self.is_placed = True
        
        
        
    
{'fraction_non_alphanumeric': 0.12677484787018256, 'fraction_numerical': 0.010141987829614604, 'mean_word_length': 1.828080229226361, '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': '1611242', 'n_tokens_mistral': 374, 'n_tokens_neox': 356, 'n_words': 75}