<commit_before>package pacman.modele;

import java.util.Scanner;

import pacman.carte.Labyrinthe;
import pacman.personnages.Pacman;

public class MainClass {
	
	public MainClass(){
		Pacman pacman = new Pacman(0, 0);
		Labyrinthe laby = new Labyrinthe(5, 5, pacman);
		Modele m = new Modele(laby);
		boolean exit = false;
		
		while(!exit){
			System.out.println("Ecrire commande (L/R/U/D/S) \n");
			Scanner sc = new Scanner(System.in);
			String entree = sc.nextLine();
			switch(entree){
				case "L":
					System.out.println(laby.toString());
					if(!m.murAGauche()){
						m.deplacerPacmanGauche();
					}
					break;
				case "R":
					System.out.println(laby.toString());
					if(!m.murADroite()){
						m.deplacerPacmanDroite();
					}
					break;
				case "U":
					System.out.println(laby.toString());
					if(!m.murEnHaut()){
						m.deplacerPacmanHaut();
					}
					break;
				case "D":
					System.out.println(laby.toString());
					if(!m.murEnBas()){
						m.deplacerPacmanBas();
					}
					break;
				case "S":
					System.out.println(laby.toString());
					break;
				default:
					break;
			}
			//sc.close();
		}
	}

	public static void main(String[] args) {
		
		new MainClass();
	}
	
}<commit_msg>Modification du Main, pour un affichage correct<commit_after>package pacman.modele;

import java.util.Scanner;

import pacman.carte.Labyrinthe;
import pacman.personnages.Pacman;

public class MainClass {
	
	public MainClass(){
		Pacman pacman = new Pacman(0, 0);
		Labyrinthe laby = new Labyrinthe(5, 5, pacman);
		Modele m = new Modele(laby);
		boolean exit = false;
		
		while(!exit){
			System.out.println("Ecrire commande (L/R/U/D/S) \n");
			Scanner sc = new Scanner(System.in);
			String entree = sc.nextLine();
			switch(entree){
				case "L":
					
					if(!m.murAGauche()){
						m.deplacerPacmanGauche();
					}
					System.out.println(laby.toString());
					break;
				case "R":
					
					if(!m.murADroite()){
						m.deplacerPacmanDroite();
					}
					System.out.println(laby.toString());
					break;
				case "U":
					
					if(!m.murEnHaut()){
						m.deplacerPacmanHaut();
					}
					System.out.println(laby.toString());
					break;
				case "D":
					
					if(!m.murEnBas()){
						m.deplacerPacmanBas();
					}
					System.out.println(laby.toString());
					break;
				case "S":
					System.out.println(laby.toString());
					break;
				default:
					break;
			}
			//sc.close();
		}
	}

	public static void main(String[] args) {
		
		new MainClass();
	}
	
}
{'fraction_non_alphanumeric': 0.1565252201761409, 'fraction_numerical': 0.0032025620496397116, 'mean_word_length': 2.5853658536585367, 'pattern_counts': {'":': 10, '<': 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': '4412749', 'n_tokens_mistral': 1263, 'n_tokens_neox': 927, 'n_words': 170}