<commit_before>from __future__ import print_function

import sys
import argparse

from .nosetester import BmiTester
from .api import load_component


def run_tests(bmi_cls, infile=None, mode='fast', verbose=True, doctests=False):
    from . import tests as package

    test = BmiTester(package=package).test

    try:
        package.__dict__['Component'] = load_component(bmi_cls)
    except ImportError as err:
        raise

    package.__dict__['INPUT_FILE'] = infile
<commit_msg>Set the BMI class to be tested to be called Bmi.<commit_after>from __future__ import print_function

import sys
import argparse

from .nosetester import BmiTester
from .api import load_component


def run_tests(bmi_cls, infile=None, mode='fast', verbose=True, doctests=False):
    from . import tests as package

    test = BmiTester(package=package).test

    try:
        package.__dict__['Bmi'] = load_component(bmi_cls)
    except ImportError as err:
        raise

    package.__dict__['INPUT_FILE'] = infile

{'fraction_non_alphanumeric': 0.08108108108108109, 'fraction_numerical': 0.0, 'mean_word_length': 4.1020408163265305, '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': '4472559', 'n_tokens_mistral': 316, 'n_tokens_neox': 302, 'n_words': 88}