<commit_before>package org.kantega.reststop.bootstrap;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.util.ArrayList;
import java.util.List;

/**
 * Provides install/uninstall of bootstrap jar as a Windows service. Supports only 64-bit Windows.
 * <p>
 * During install (or uninstall) two directories are created, in the jar's location:
 * <ul>
 * <li>bin: Contains two executable files:
 * <ul>
 * <li>the Windows service (wrapper), named <i>[serviceName].exe</i>.</li>
 * <li>the the GUI manager application used to monitor and configure the Windows service, named <i>[serviceName]w
 * .exe</i>.</li>
 * </ul>
 * </li>
 * <li>logs: Contains log files for the Windows service.
 * </ul>
 * </p>
 */
public class WindowsServiceInstaller {

    private static final String INSTALL_PARAM = "--installWinSrv";
    private static final String UNINSTALL_PARAM = "--unInstallWinSrv";
    private static final String SPACE = " ";
    private static final String JAVA_HOME = "java.home";

    static boolean shouldInstallOrUninstall(String[] args) {
        Settings installSettings = parseCli(args);
        return isWindows() && !installSettings.serviceName.isEmpty();
    }

    static void installOrUninstallAndExit(String[] args, Main.Settings settings) {

        if (!isWindows()) {
            System.out.println("Installation as Windows service will only be done on ... Windows!");
            System.exit(1);
        }

        Settings installSettings = parseCli(args);

        if (installSettings.serviceName.isEmpty()) {
            System.out.println("Settings for installation as Windows service are missing!");
            System.exit(2);
        }

        String operation = installSettings.install ? "[INSTALL]" : "[UNINSTALL]";

        try {
<commit_msg>Remove invalid javadoc tag<commit_after>package org.kantega.reststop.bootstrap;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.util.ArrayList;
import java.util.List;

/**
 * Provides install/uninstall of bootstrap jar as a Windows service. Supports only 64-bit Windows.
 *
 * During install (or uninstall) two directories are created, in the jar's location:
 * <ul>
 * <li>bin: Contains two executable files:
 * <ul>
 * <li>the Windows service (wrapper), named <i>[serviceName].exe</i>.</li>
 * <li>the the GUI manager application used to monitor and configure the Windows service, named <i>[serviceName]w
 * .exe</i>.</li>
 * </ul>
 * </li>
 * <li>logs: Contains log files for the Windows service.
 * </ul>
 */
public class WindowsServiceInstaller {

    private static final String INSTALL_PARAM = "--installWinSrv";
    private static final String UNINSTALL_PARAM = "--unInstallWinSrv";
    private static final String SPACE = " ";
    private static final String JAVA_HOME = "java.home";

    static boolean shouldInstallOrUninstall(String[] args) {
        Settings installSettings = parseCli(args);
        return isWindows() && !installSettings.serviceName.isEmpty();
    }

    static void installOrUninstallAndExit(String[] args, Main.Settings settings) {

        if (!isWindows()) {
            System.out.println("Installation as Windows service will only be done on ... Windows!");
            System.exit(1);
        }

        Settings installSettings = parseCli(args);

        if (installSettings.serviceName.isEmpty()) {
            System.out.println("Settings for installation as Windows service are missing!");
            System.exit(2);
        }

        String operation = installSettings.install ? "[INSTALL]" : "[UNINSTALL]";

        try {

{'fraction_non_alphanumeric': 0.11915111224750703, 'fraction_numerical': 0.002045512656609563, 'mean_word_length': 3.4404086265607265, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '3754759', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1074, 'n_words': 329}