<commit_before>package moe.tristan.easyfxml.util;

import moe.tristan.easyfxml.api.FxmlStylesheet;
import org.junit.Test;
import org.testfx.framework.junit.ApplicationTest;

import javafx.application.Platform;
import javafx.collections.ObservableList;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;

import java.util.concurrent.CompletionStage;
import java.util.concurrent.ExecutionException;
import java.util.function.Function;

import static org.assertj.core.api.Assertions.assertThat;

public class StagesTest extends ApplicationTest {

    private static final FxmlStylesheet TEST_STYLE = new FxmlStylesheet() {
        @Override
        public String getExternalForm() {
            return Resources.getResourceURL("fxml/test_style.css")
                            .getOrElseThrow((Function<? super Throwable, RuntimeException>) RuntimeException::new)
                            .toExternalForm();
        }
    };

    private Stage testStage;
    private String stageTitle;
    private String stageTitle2;
    private Pane stagePane;

    @Override
    public void start(final Stage stage) {
        Platform.setImplicitExit(false);
        stageTitle = "stageTitle";
        stageTitle2 = "stageTitle2";
        stagePane = new Pane();
        testStage = stage;
        testStage.setScene(new Scene(stagePane));
        stage.show();
        stage.hide();
    }

    @Test
    public void stageOf() throws ExecutionException, InterruptedException {
        final Pane newPane = new Pane();<commit_msg>Move field to local variable<commit_after>package moe.tristan.easyfxml.util;

import moe.tristan.easyfxml.api.FxmlStylesheet;
import org.junit.Test;
import org.testfx.framework.junit.ApplicationTest;

import javafx.application.Platform;
import javafx.collections.ObservableList;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;

import java.util.concurrent.CompletionStage;
import java.util.concurrent.ExecutionException;
import java.util.function.Function;

import static org.assertj.core.api.Assertions.assertThat;

public class StagesTest extends ApplicationTest {

    private static final FxmlStylesheet TEST_STYLE = new FxmlStylesheet() {
        @Override
        public String getExternalForm() {
            return Resources.getResourceURL("fxml/test_style.css")
                            .getOrElseThrow((Function<? super Throwable, RuntimeException>) RuntimeException::new)
                            .toExternalForm();
        }
    };

    private Stage testStage;
    private String stageTitle;
    private String stageTitle2;

    @Override
    public void start(final Stage stage) {
        Platform.setImplicitExit(false);
        stageTitle = "stageTitle";
        stageTitle2 = "stageTitle2";
        Pane stagePane = new Pane();
        testStage = stage;
        testStage.setScene(new Scene(stagePane));
        stage.show();
        stage.hide();
    }

    @Test
    public void stageOf() throws ExecutionException, InterruptedException {
        final Pane newPane = new Pane();
{'fraction_non_alphanumeric': 0.08882428940568475, 'fraction_numerical': 0.001937984496124031, 'mean_word_length': 3.168236877523553, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '5103936', 'n_tokens_mistral': 855, 'n_tokens_neox': 841, 'n_words': 191}