<commit_before>package dk.naestebus;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;
import java.io.FilenameFilter;

/**
 * Start the server.
 */
public class Main {

    public static final String WAR_PATH = "build/libs/";
    public static final String WAR_FILE_ENDING = "war";

    private static final Logger log = LoggerFactory.getLogger(Main.class);

    public static void main(String... args) throws Exception {
        // Find war file
        File warPath = new File(WAR_PATH);

        log.info("Starting server on path {} with war path {}...", new File(".").getAbsolutePath(), warPath.getAbsolutePath());

        File[] wars = warPath.listFiles(new FilenameFilter() {
            @Override
            public boolean accept(File dir, String name) {
                return name.endsWith(WAR_FILE_ENDING);
            }
        });

        if (wars == null || wars.length == 0) {
            log.error("No war file found, exiting.");
            return;
        }

        Server server = new Server(Integer.valueOf(System.getenv("PORT")));
        WebAppContext context = new WebAppContext();
        context.setContextPath("/");
        context.setWar(wars[0].getAbsolutePath());
        server.setHandler(context);
        server.start();
        server.join();
    }
}
<commit_msg>Different path, more logging.<commit_after>package dk.naestebus;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;
import java.io.FilenameFilter;

/**
 * Start the server.
 */
public class Main {

    public static final String WAR_PATH = "app/build/libs/";
    public static final String WAR_FILE_ENDING = "war";

    private static final Logger log = LoggerFactory.getLogger(Main.class);

    public static void main(String... args) throws Exception {
        // Find war file
        File root = new File(".");
        File warPath = new File(WAR_PATH);

        log.info("Starting server on path {} with war path {}...", root.getAbsolutePath(), warPath.getAbsolutePath());
        log.info("Files in root: {}.", root.list());

        File[] wars = warPath.listFiles(new FilenameFilter() {
            @Override
            public boolean accept(File dir, String name) {
                return name.endsWith(WAR_FILE_ENDING);
            }
        });

        if (wars == null || wars.length == 0) {
            log.error("No war file found, exiting.");
            return;
        }

        Server server = new Server(Integer.valueOf(System.getenv("PORT")));
        WebAppContext context = new WebAppContext();
        context.setContextPath("/");
        context.setWar(wars[0].getAbsolutePath());
        server.setHandler(context);
        server.start();
        server.join();
    }
}

{'fraction_non_alphanumeric': 0.12657795974070282, 'fraction_numerical': 0.002729443875810304, 'mean_word_length': 2.558252427184466, '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': '1676017', 'n_tokens_mistral': 845, 'n_tokens_neox': 827, 'n_words': 208}