<commit_before>/**
 * Classe principale qui gère le lancement du jeu
 * 
 * @author <NAME>
 */

package principal;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.Timer;

import modele.Gravite;
import modele.ObservableModele;
import resources.Constants;
import vue.Jeu;
import vue.StartPanel;
import controller.Controller;

public class Main {

  /**
   * Fonction main
   * 
   * @param args
   */
  public static void main(String[] args) {
    // ObservableModele m = new Bezier(0.002);
    // ObservableModele m = new Parabole(1);
    final ObservableModele m = new Gravite();   
    StartPanel start = new StartPanel(m);
    final Jeu f = new Jeu(m, new Controller());
    f.startSimulation();

    ActionListener al = new ActionListener() {
      int cpt = 1;

      @Override
      public void actionPerformed(ActionEvent arg0) {
        if (m.done) {
          cpt++;
          //if (cpt < Constants.NBR_SIMULATION) {
            f.restartSimulation();
          //} else {
          //  System.exit(0);
          //}
        }
      }
    };
    Timer t = new Timer(1000, al);
    t.start();
  }
}<commit_msg>Update Main.java<commit_after>/**
 * Classe principale qui gère le lancement du jeu
 * 
 * @author <NAME>
 */

package principal;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.Timer;

import modele.Gravite;
import modele.ObservableModele;
import resources.Constants;
import vue.Jeu;
import vue.StartPanel;
import controller.Controller;

public class Main {

  /**
   * Fonction main
   * 
   * @param args
   */
  public static void main(String[] args) {
    // ObservableModele m = new Bezier(0.002);
    // ObservableModele m = new Parabole(1);
    final ObservableModele m = new Gravite();   
    StartPanel start = new StartPanel(m);
    while(!m.isChoosed());;
    final Jeu f = new Jeu(m, new Controller());
    f.startSimulation();
  
    ActionListener al = new ActionListener() {
      int cpt = 1;

      @Override
      public void actionPerformed(ActionEvent arg0) {
        if (m.done) {
          cpt++;
          //if (cpt < Constants.NBR_SIMULATION) {
            f.restartSimulation();
          //} else {
          //  System.exit(0);
          //}
        }
      }
    };
    Timer t = new Timer(1000, al);
    t.start();
  }
}
{'fraction_non_alphanumeric': 0.12335735481136074, 'fraction_numerical': 0.010173802458668928, 'mean_word_length': 2.376251788268956, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '1170167', 'n_tokens_mistral': 787, 'n_tokens_neox': 755, 'n_words': 192}