<commit_before>package codeOrchestra.util

import codeOrchestra.colt.core.ui.ColtApplication
import javafx.application.Platform

import java.awt.*
import java.util.prefs.BackingStoreException
import java.util.prefs.Preferences

/**
 * @author <NAME>
 */
class ApplicationUtil {

    private static final String LAST_START_REQUEST_KEY = "last_start_request"
    private static final int REQUEST_TIMEOUT = 5000

    private static Preferences preferences = Preferences.userNodeForPackage(ApplicationUtil.class)

    static void startAnotherColtInstance() throws IOException {
        resetLastStartRequestDate()

        if (SystemInfo.isMac) {
            File baseDir = PathUtils.applicationBaseDir
            if (baseDir.path.endsWith(".app")) {
                Desktop.getDesktop().open(baseDir)
                Runtime.getRuntime().exec("open -n -a " + baseDir.path)
                return
            }
        } else if (SystemInfo.isWindows) {
            File executable = PathUtils.applicationExecutable
            if (executable != null && executable.exists()) {
                startExecutable(executable.path)
                return
            }
        } else {
            throw new IllegalStateException("Unsupported OS: " + System.getProperty("os.name"))
        }
<commit_msg>[CJ-149]<commit_after>package codeOrchestra.util

import codeOrchestra.colt.core.ui.ColtApplication
import javafx.application.Platform

import java.awt.*
import java.util.prefs.BackingStoreException
import java.util.prefs.Preferences

/**
 * @author <NAME>
 */
class ApplicationUtil {

    private static final String LAST_START_REQUEST_KEY = "last_start_request"
    private static final int REQUEST_TIMEOUT = 5000

    private static Preferences preferences = Preferences.userNodeForPackage(ApplicationUtil.class)

    static void startAnotherColtInstance() throws IOException {
        resetLastStartRequestDate()

        if (SystemInfo.isMac) {
            File baseDir = PathUtils.applicationBaseDir
            if (baseDir.path.endsWith(".app")) {
                Runtime.getRuntime().exec("open -n -a " + baseDir.path)
                return
            }
        } else if (SystemInfo.isWindows) {
            File executable = PathUtils.applicationExecutable
            if (executable != null && executable.exists()) {
                startExecutable(executable.path)
                return
            }
        } else {
            throw new IllegalStateException("Unsupported OS: " + System.getProperty("os.name"))
        }

{'fraction_non_alphanumeric': 0.08879242304656669, 'fraction_numerical': 0.004340962904498816, 'mean_word_length': 2.5855728429985856, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2757921', 'n_tokens_mistral': 680, 'n_tokens_neox': 651, 'n_words': 139}