<commit_before>package de.learnlib.alex.standalone;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlets.GzipFilter;
import org.eclipse.jetty.webapp.WebAppContext;

import javax.servlet.DispatcherType;
import java.io.File;
import java.net.URLDecoder;
import java.util.EnumSet;

public class Main {

    private static final String PORT_ARGUMENT="-port=";
    private static final int    PORT_NUMBER=8000;

    public static void main(String[] args) throws Exception {
        int port = readPortNumberOrFail(args);

        String path = Main.class.getProtectionDomain().getCodeSource().getLocation().getPath();
        String decodedPath = URLDecoder.decode(path, "UTF-8");
        File standaloneJar = new File(decodedPath);
        String folder = standaloneJar.getParent();
        File applicationWar = new File(folder + "/weblearner.war");

        WebAppContext webapp = new WebAppContext();
        webapp.setContextPath("/");<commit_msg>fixed path to ALEX.war in the standalone server.<commit_after>package de.learnlib.alex.standalone;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlets.GzipFilter;
import org.eclipse.jetty.webapp.WebAppContext;

import javax.servlet.DispatcherType;
import java.io.File;
import java.net.URLDecoder;
import java.util.EnumSet;

public class Main {

    private static final String PORT_ARGUMENT="-port=";
    private static final int    PORT_NUMBER=8000;

    public static void main(String[] args) throws Exception {
        int port = readPortNumberOrFail(args);

        String path = Main.class.getProtectionDomain().getCodeSource().getLocation().getPath();
        String decodedPath = URLDecoder.decode(path, "UTF-8");
        File standaloneJar = new File(decodedPath);
        String folder = standaloneJar.getParent();
        File applicationWar = new File(folder + "/ALEX.war");

        WebAppContext webapp = new WebAppContext();
        webapp.setContextPath("/");
{'fraction_non_alphanumeric': 0.1078880407124682, 'fraction_numerical': 0.005089058524173028, 'mean_word_length': 3.9396984924623117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5106302', 'n_tokens_mistral': 577, 'n_tokens_neox': 549, 'n_words': 132}