<commit_before>package com.cflint.tools;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.ResourceBundle;

public class AllowedExtensionsLoader {

    public static final String CFC_DEFAULT_EXTENSION = ".cfc";
    public static final String CFM_DEFAULT_EXTENSION = ".cfm";

    public static List<String> init(final String resourceBundleName) {
        List<String> allowedExtensions = new ArrayList<>();
        try {
            allowedExtensions.addAll(Arrays
                    .asList(ResourceBundle.getBundle(resourceBundleName).getString("allowedextensions").split(",")));
        } catch (final Exception e) {
            allowedExtensions.add(CFC_DEFAULT_EXTENSION);
            allowedExtensions.add(CFM_DEFAULT_EXTENSION);<commit_msg>add private constructor<commit_after>package com.cflint.tools;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.ResourceBundle;

public class AllowedExtensionsLoader {

    public static final String CFC_DEFAULT_EXTENSION = ".cfc";
    public static final String CFM_DEFAULT_EXTENSION = ".cfm";

    private AllowedExtensionsLoader() {
        throw new IllegalStateException("AllowedExtensionsLoader utility class");
    }

    public static List<String> init(final String resourceBundleName) {
        List<String> allowedExtensions = new ArrayList<>();
        try {
            allowedExtensions.addAll(Arrays
                    .asList(ResourceBundle.getBundle(resourceBundleName).getString("allowedextensions").split(",")));
        } catch (final Exception e) {
            allowedExtensions.add(CFC_DEFAULT_EXTENSION);
            allowedExtensions.add(CFM_DEFAULT_EXTENSION);
{'fraction_non_alphanumeric': 0.09355026147588612, 'fraction_numerical': 0.0, 'mean_word_length': 3.770083102493075, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1215941', 'n_tokens_mistral': 448, 'n_tokens_neox': 447, 'n_words': 96}