<commit_before>package ch.softappeal.yass.tutorial.server;

import ch.softappeal.yass.transport.TransportSetup;
import ch.softappeal.yass.transport.ws.WsConnection;
import ch.softappeal.yass.transport.ws.WsEndpoint;
import ch.softappeal.yass.util.Exceptions;
import ch.softappeal.yass.util.NamedThreadFactory;

import javax.websocket.Session;
import javax.websocket.server.ServerEndpointConfig;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

public abstract class WsServerSetup extends ServerSetup {

    public static final String HOST = "localhost";
    public static final int PORT = 9090;
    public static final String PATH = "/tutorial";
    public static final String XHR_PATH = "/xhr";
    public static final String WEB_PATH = ".";

    public static final Executor REQUEST_EXECUTOR = Executors.newCachedThreadPool(new NamedThreadFactory("requestExecutor", Exceptions.STD_ERR));

    private static final TransportSetup TRANSPORT_SETUP = SocketServer.createTransportSetup(REQUEST_EXECUTOR);

    public static final class Endpoint extends WsEndpoint {
        @Override protected WsConnection createConnection(final Session session) throws Exception {
            return WsConnection.create(TRANSPORT_SETUP, session);
        }
    }

    protected static final ServerEndpointConfig ENDPOINT_CONFIG = ServerEndpointConfig.Builder.create(Endpoint.class, PATH).build();

}
<commit_msg>tutorial: cosmetic<commit_after>package ch.softappeal.yass.tutorial.server;

import ch.softappeal.yass.transport.TransportSetup;
import ch.softappeal.yass.transport.ws.WsConnection;
import ch.softappeal.yass.transport.ws.WsEndpoint;
import ch.softappeal.yass.util.Exceptions;
import ch.softappeal.yass.util.NamedThreadFactory;

import javax.websocket.Session;
import javax.websocket.server.ServerEndpointConfig;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

public abstract class WsServerSetup extends ServerSetup {

    public static final String HOST = "localhost";
    public static final int PORT = 9090;
    public static final String PATH = "/tutorial";
    public static final String XHR_PATH = "/xhr";
    public static final String WEB_PATH = ".";

    public static final Executor REQUEST_EXECUTOR = Executors.newCachedThreadPool(new NamedThreadFactory("requestExecutor", Exceptions.STD_ERR));

    private static final TransportSetup TRANSPORT_SETUP = createTransportSetup(REQUEST_EXECUTOR);

    public static final class Endpoint extends WsEndpoint {
        @Override protected WsConnection createConnection(final Session session) throws Exception {
            return WsConnection.create(TRANSPORT_SETUP, session);
        }
    }

    protected static final ServerEndpointConfig ENDPOINT_CONFIG = ServerEndpointConfig.Builder.create(Endpoint.class, PATH).build();

}

{'fraction_non_alphanumeric': 0.07892882311486962, 'fraction_numerical': 0.0028188865398167725, 'mean_word_length': 5.053304904051172, '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': '6649055', 'n_tokens_mistral': 808, 'n_tokens_neox': 755, 'n_words': 189}