<commit_before>package jp.toastkid.dialog;

import java.io.IOException;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicInteger;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javafx.application.Application;
import javafx.application.Platform;
import javafx.concurrent.Service;
import javafx.concurrent.Task;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import jp.toastkid.wiki.ImageChooser;
import jp.toastkid.wiki.models.Defines;

/**
 * 進捗表示ダイアログ.
 * @author <NAME>
 * @see <a href="http://stackoverflow.com/questions/27866432/
 *controls-fx-progress-dialog-modality-alert-modality">Controls FX Progress Dialog Modality
 * &amp; Alert Modality</a>
 * @see
 * <a href="http://stackoverflow.com/questions/29625170/display-popup-with-progressbar-in-javafx">
 * Display Popup with ProgressBar in JavaFX</a>
 */
public final class ProgressDialog extends Application implements AutoCloseable {

    /** Logger. */
    private static final Logger LOGGER = LoggerFactory.getLogger(ProgressDialog.class);

    /** path to default image directory. */
    private static final String DEFAULT_IMAGE_DIR = Defines.ASSETS_DIR + "/images/splash/";

    /** path to user image directory. */
    private static final String USER_IMAGE_DIR    = Defines.USER_DIR + "/res/images/splash/";

    /** FXML ファイルのパス. */
    private static final String FXML_PATH         = Defines.SCENE_DIR + "/ProgressDialog.fxml";

    /** Scene. */
    private Scene scene = null;

    /** 表示中. */<commit_msg>modify splash resource dir.<commit_after>package jp.toastkid.dialog;

import java.io.IOException;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicInteger;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javafx.application.Application;
import javafx.application.Platform;
import javafx.concurrent.Service;
import javafx.concurrent.Task;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import jp.toastkid.wiki.ImageChooser;
import jp.toastkid.wiki.models.Defines;

/**
 * 進捗表示ダイアログ.
 * @author <NAME>
 * @see <a href="http://stackoverflow.com/questions/27866432/
 *controls-fx-progress-dialog-modality-alert-modality">Controls FX Progress Dialog Modality
 * &amp; Alert Modality</a>
 * @see
 * <a href="http://stackoverflow.com/questions/29625170/display-popup-with-progressbar-in-javafx">
 * Display Popup with ProgressBar in JavaFX</a>
 */
public final class ProgressDialog extends Application implements AutoCloseable {

    /** Logger. */
    private static final Logger LOGGER = LoggerFactory.getLogger(ProgressDialog.class);

    /** path to default image directory. */
    private static final String DEFAULT_IMAGE_DIR = Defines.ASSETS_DIR + "/images/splash/";

    /** path to user image directory. */
    private static final String USER_IMAGE_DIR    = Defines.USER_DIR + "/res/images/background/";

    /** FXML ファイルのパス. */
    private static final String FXML_PATH         = Defines.SCENE_DIR + "/ProgressDialog.fxml";

    /** Scene. */
    private Scene scene = null;

    /** 表示中. */
{'fraction_non_alphanumeric': 0.11900479616306954, 'fraction_numerical': 0.011390887290167866, 'mean_word_length': 4.189735614307931, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '250629', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1053, 'n_words': 229}