<commit_before># Running the tests from the command line

You can run the unit tests from the command line by entering

    rake test

in the *top level* directory of the distribution. This, however,
requires that you have installed ruby and rake (`gem install rake`).


# Running the unit tests directly from your brower

Open the file `run_unit_tests.html` in your browser. You can choose
which test to run in the left frame. The test results will appear in
the right frame.


# Creating new tests

You can use the file `_test_tmpl.html` as a basis for you new tests.<commit_msg>Updated how to run tests<commit_after># Run the unit tests directly from your browser

Open the file `test/unit/index.html` in your browser. You can choose
which test to run in the left frame. The test results will appear in
the right frame.

# Creating new tests

You can use the file `_test_tmpl.html` as a basis for you new tests.
{'fraction_non_alphanumeric': 0.047045951859956234, 'fraction_numerical': 0.0, 'mean_word_length': 3.972826086956522, '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': '863516', 'n_tokens_mistral': 254, 'n_tokens_neox': 244, 'n_words': 149}