<commit_before>from file_preprocess_js_subset import FilePreProcessJsSubset

class FilePreProcessorFactory(object):
    def get_preprocessor(self, name):
        classes = (FilePreProcessJsSubset,)

        for clazz in classes:
            if clazz.get_name() == name:
                return clazz()

        raise FilePreProcessorDoesNotExistException()

class FilePreProcessorDoesNotExistException(Exception):
    pass

<commit_msg>pretty much blindly committing work I did over a month ago<commit_after>from file_preprocess_js_subset import FilePreProcessJsSubset
from file_preprocess_regex import FilePreProcessRegex

class FilePreProcessorFactory(object):
    def get_preprocessor(self, name):
        classes = (FilePreProcessJsSubset, FilePreProcessRegex)

        for clazz in classes:
            if clazz.get_name() == name:
                return clazz()

        raise FilePreProcessorDoesNotExistException()

class FilePreProcessorDoesNotExistException(Exception):
    pass


{'fraction_non_alphanumeric': 0.056622851365015166, 'fraction_numerical': 0.0, 'mean_word_length': 3.900990099009901, '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': '2350920', 'n_tokens_mistral': 271, 'n_tokens_neox': 260, 'n_words': 65}