<commit_before>package com.kstruct.markdown;

import java.io.File;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.Map;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

@Mojo(name = "generate-static-site")
public class StaticSiteGeneratorMojo extends AbstractMojo {

    @Parameter( property = "inputDirectory")
    private File inputDirectory;

    @Parameter( property = "outputDirectory")
    private File outputDirectory;

    @Parameter( property = "siteName")
    private String siteName;

    @Parameter( property = "extraConfig")
    private Map<String,Object> extraConfig;

    @Parameter( property = "strictLinkChecking")
    private Boolean strictLinkChecking;

    @Parameter( property = "template")
    private Path template;

    public void execute() throws MojoExecutionException {
        getLog().info( "Will generate static site from " + inputDirectory + " into " + outputDirectory + " based on " + template );

        StaticSiteGenerator ssg = new StaticSiteGenerator(inputDirectory.toPath(), outputDirectory.toPath(), template, siteName, strictLinkChecking, extraConfig);
        try {
            ssg.run();
        } catch (InterruptedException e) {
            throw new MojoExecutionException("Processing Interrupted", e);<commit_msg>Oops - And use File rather than Path for template too<commit_after>package com.kstruct.markdown;

import java.io.File;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.Map;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

@Mojo(name = "generate-static-site")
public class StaticSiteGeneratorMojo extends AbstractMojo {

    @Parameter( property = "inputDirectory")
    private File inputDirectory;

    @Parameter( property = "outputDirectory")
    private File outputDirectory;

    @Parameter( property = "siteName")
    private String siteName;

    @Parameter( property = "extraConfig")
    private Map<String,Object> extraConfig;

    @Parameter( property = "strictLinkChecking")
    private Boolean strictLinkChecking;

    @Parameter( property = "template")
    private File template;

    public void execute() throws MojoExecutionException {
        getLog().info( "Will generate static site from " + inputDirectory + " into " + outputDirectory + " based on " + template );

        StaticSiteGenerator ssg = new StaticSiteGenerator(inputDirectory.toPath(), outputDirectory.toPath(), template.toPath(), siteName, strictLinkChecking, extraConfig);
        try {
            ssg.run();
        } catch (InterruptedException e) {
            throw new MojoExecutionException("Processing Interrupted", e);
{'fraction_non_alphanumeric': 0.10044414075845576, 'fraction_numerical': 0.0, 'mean_word_length': 4.219251336898396, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3019199', 'n_tokens_mistral': 791, 'n_tokens_neox': 762, 'n_words': 202}