<commit_before>package com.vtence.molecule.examples.files;

import com.vtence.molecule.middlewares.FileServer;
import com.vtence.molecule.middlewares.StaticAssets;
import com.vtence.molecule.simple.SimpleServer;

import java.io.File;
import java.io.IOException;

/**
 * Access at <a href="http://localhost:8080">http://localhost:8080</a>
 */
public class StaticFiles {

    public static void main(String[] args) throws IOException {
        SimpleServer server = new SimpleServer(8080);

        // Serve files in the examples/files/blog directory, according to
        // the path info of the request.
        FileServer files = new FileServer(new File("./examples/files/site"));

        // Serve static assets (e.g. js files, images, css files, etc)
        // for any request whose path starts with one of the url prefixes specified
        // (in this case, "/").
        StaticAssets assets = new StaticAssets(files).serve("/");

        // If request targets a directory (i.e. request path ends with "/"),
        // serve the index.html file located in that directory.
        assets.index("index.html");

        server.run(assets);
    }
}
<commit_msg>Fix typo in example<commit_after>package com.vtence.molecule.examples.files;

import com.vtence.molecule.middlewares.FileServer;
import com.vtence.molecule.middlewares.StaticAssets;
import com.vtence.molecule.simple.SimpleServer;

import java.io.File;
import java.io.IOException;

/**
 * Access at <a href="http://localhost:8080">http://localhost:8080</a>
 */
public class StaticFiles {

    public static void main(String[] args) throws IOException {
        SimpleServer server = new SimpleServer(8080);

        // Serve files in the examples/files/site directory, according to
        // the path info of the request.
        FileServer files = new FileServer(new File("./examples/files/site"));

        // Serve static assets (e.g. js files, images, css files, etc)
        // for any request whose path starts with one of the url prefixes specified
        // (in this case, "/").
        StaticAssets assets = new StaticAssets(files).serve("/");

        // If request targets a directory (i.e. request path ends with "/"),
        // serve the index.html file located in that directory.
        assets.index("index.html");

        server.run(assets);
    }
}

{'fraction_non_alphanumeric': 0.1183533447684391, 'fraction_numerical': 0.010291595197255575, 'mean_word_length': 2.9408783783783785, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3403997', 'n_tokens_mistral': 687, 'n_tokens_neox': 636, 'n_words': 201}