<commit_before>package nl.tudelft.lifetiles.graph;

import nl.tudelft.lifetiles.graph.jgrapht.JGraphTGraphFactory;

/**
 * @author <NAME> Produces the various factories used.
 * @param <V>
 *            The type of vertex to use.
 */
public class FactoryProducer<V> {
    /**
     * The graph library to use when none is specified.
     */
    private static final String DEFAULT_LIBRARY = "JGraphT";

    /**
     * @param graphLibrary
     *            The graph library to use.
     * @return A new factory of the desired type.
     */
    public final GraphFactory<V> getFactory(final String graphLibrary) {
        if (graphLibrary.equalsIgnoreCase("JGraphT")) {
            return new JGraphTGraphFactory<V>();
        }
        // Specified an invalid Graph library.
        return null;
    }

    /**
     * Produce a new GraphFactory using the
     * {@value FactoryProducer#DEFAULT_LIBRARY} library.
     * @return A new factory using {@value FactoryProducer#DEFAULT_LIBRARY}.
     */
    public final GraphFactory<V> getFactory() {
        return getFactory(DEFAULT_LIBRARY);
    }

}<commit_msg>Fixed minor issues.<commit_after>package nl.tudelft.lifetiles.graph;

import nl.tudelft.lifetiles.graph.jgrapht.JGraphTGraphFactory;

/**
 * @author <NAME>
 * Produces the various factories used.
 * @param <V>
 *            The type of vertex to use.
 */
public class FactoryProducer<V> {
    /**
     * The graph library to use when none is specified.
     */
    private static final String DEFAULT_LIBRARY = "JGraphT";

    /**
     * @param graphLibrary
     *            The graph library to use.
     * @return A new factory of the desired type.
     */
    public final GraphFactory<V> getFactory(final String graphLibrary) {
        if (graphLibrary.equalsIgnoreCase("JGraphT")) {
            return new JGraphTGraphFactory<V>();
        }
        // Specified an invalid Graph library.
        throw new IllegalArgumentException();
    }

    /**
     * Produce a new GraphFactory using the
     * {@value FactoryProducer#DEFAULT_LIBRARY} library.
     * @return A new factory using {@value FactoryProducer#DEFAULT_LIBRARY}.
     */
    public final GraphFactory<V> getFactory() {
        return getFactory(DEFAULT_LIBRARY);
    }

}
{'fraction_non_alphanumeric': 0.09777777777777778, 'fraction_numerical': 0.0, 'mean_word_length': 2.5786963434022256, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '373079', 'n_tokens_mistral': 653, 'n_tokens_neox': 641, 'n_words': 187}