<commit_before>package net.trajano.batik;

import java.io.File;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

import net.trajano.batik.internal.LoggingSvgConverterController;

import org.apache.batik.apps.rasterizer.DestinationType;
import org.apache.batik.apps.rasterizer.SVGConverter;
import org.apache.batik.apps.rasterizer.SVGConverterException;
import org.apache.maven.model.Resource;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.codehaus.plexus.util.DirectoryScanner;

/**
 * Executes the Batik rasterizer.
 */
@Mojo(name = "rasterizer", defaultPhase = LifecyclePhase.GENERATE_RESOURCES, threadSafe = true, requiresOnline = false)
public class RasterizerMojo extends AbstractMojo {
    /**
     * Default SVG resources.
     */
    private static final List<Resource> DEFAULT_SVG_RESOURCES;

    static {
        final Resource defaultSvgResource = new Resource();
        defaultSvgResource.setDirectory("${basedir}/src/main/svg");
        defaultSvgResource.addInclude("**/*.svg");
        defaultSvgResource.setFiltering(false);
        DEFAULT_SVG_RESOURCES = Collections.singletonList(defaultSvgResource);
    }

    /**
     * The directory to write the rasterized SVG files.
     */
    @Parameter(defaultValue = "${project.build.directory}/generated-resources/batik", required = true)<commit_msg>Removed ${basedir}<commit_after>package net.trajano.batik;

import java.io.File;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

import net.trajano.batik.internal.LoggingSvgConverterController;

import org.apache.batik.apps.rasterizer.DestinationType;
import org.apache.batik.apps.rasterizer.SVGConverter;
import org.apache.batik.apps.rasterizer.SVGConverterException;
import org.apache.maven.model.Resource;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.codehaus.plexus.util.DirectoryScanner;

/**
 * Executes the Batik rasterizer.
 */
@Mojo(name = "rasterizer", defaultPhase = LifecyclePhase.GENERATE_RESOURCES, threadSafe = true, requiresOnline = false)
public class RasterizerMojo extends AbstractMojo {
    /**
     * Default SVG resources.
     */
    private static final List<Resource> DEFAULT_SVG_RESOURCES;

    static {
        final Resource defaultSvgResource = new Resource();
        defaultSvgResource.setDirectory("src/main/svg");
        defaultSvgResource.addInclude("**/*.svg");
        defaultSvgResource.setFiltering(false);
        DEFAULT_SVG_RESOURCES = Collections.singletonList(defaultSvgResource);
    }

    /**
     * The directory to write the rasterized SVG files.
     */
    @Parameter(defaultValue = "${project.build.directory}/generated-resources/batik", required = true)
{'fraction_non_alphanumeric': 0.10825396825396826, 'fraction_numerical': 0.0, 'mean_word_length': 4.718693284936479, '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': '4934290', 'n_tokens_mistral': 966, 'n_tokens_neox': 927, 'n_words': 160}