<commit_before>package nl.tehdreamteam.se42.web.token;

import nl.tehdreamteam.se42.web.token.impl.HashTokenRegistry;

/**
 * Holds a single instance of a {@link TokenRegistry}.
 */
public class TokenRegistryFactory {

    private static TokenRegistry registry = new HashTokenRegistry();

    /**
     * Gets the global {@link TokenRegistry}.
     *<commit_msg>Private constructor for utility class.<commit_after>package nl.tehdreamteam.se42.web.token;

import nl.tehdreamteam.se42.web.token.impl.HashTokenRegistry;

/**
 * Holds a single instance of a {@link TokenRegistry}.
 */
public class TokenRegistryFactory {

    private static TokenRegistry registry = new HashTokenRegistry();

    private TokenRegistryFactory() {
        throw new UnsupportedOperationException("Should not be instantiated.");
    }

    /**
     * Gets the global {@link TokenRegistry}.
     *
{'fraction_non_alphanumeric': 0.10218140068886337, 'fraction_numerical': 0.009184845005740528, 'mean_word_length': 3.898876404494382, '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': '5398246', 'n_tokens_mistral': 245, 'n_tokens_neox': 238, 'n_words': 64}