<commit_before>package seu;

import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.scene.image.Image;
import javafx.stage.WindowEvent;
import javafx.util.Callback;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Main extends Application {

    private ConfigurableApplicationContext springContext;
    private Parent rootNode;

    public static void main(final String[] args) {
        Application.launch(args);
    }

//    public static void main(String[] args) {
//        launch( args);
//    }

    @Override
    public void init() throws Exception {
        springContext = SpringApplication.run(Main.class);
        FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/view//MyScene.fxml"));
        fxmlLoader.setControllerFactory(new Callback<Class<?>, Object>() {
            @Override
            public Object call(Class<?> requiredType) {
                return springContext.getBean(requiredType);
            }
        });
        rootNode = (Parent) fxmlLoader.load();
    }

    @Override
    public void start(Stage primaryStage) throws Exception {

        Scene Scene = new Scene(rootNode, 600, 400);
        primaryStage.setScene(Scene);
        Scene.getStylesheets().add(
                getClass().getResource("/view//login.css")
                        .toExternalForm());
        primaryStage.getIcons().add(new Image("/images/01.png"));
        primaryStage.setResizable(false);
        primaryStage.show();
    }

    @Override
    public void stop() throws Exception {
        springContext.close();
    }




}<commit_msg>fix bugs<commit_after>package seu;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.scene.image.Image;

public class Main  extends Application {
    @Override
    public void start(Stage primaryStage) {
        try {
            Parent root = FXMLLoader.load(getClass()
                    .getResource("/view/MyScene.fxml"));
            primaryStage.setTitle("虚拟校园登陆");
            Scene Scene = new Scene(root, 600, 400);
            primaryStage.setScene(Scene);
            Scene.getStylesheets().add(
                    getClass().getResource("/view/login.css")
                            .toExternalForm());
            primaryStage.getIcons().add(new Image("/images/01.png"));
            primaryStage.setResizable(false);
            primaryStage.show();
        } catch(Exception e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {

        launch( args);
    }
}
{'fraction_non_alphanumeric': 0.11035189613939186, 'fraction_numerical': 0.005466347796378545, 'mean_word_length': 2.6645807259073844, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, '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': '5752960', 'n_tokens_mistral': 805, 'n_tokens_neox': 785, 'n_words': 160}