<commit_before># -*- coding: utf-8 -*-
"""Tests for natto.dictionary."""
import re
import unittest
import natto.mecab as mecab

class TestDictionary(unittest.TestCase):
    """Tests the behavior of the natto.dictionary.DictionaryInfo class."""<commit_msg>test_dictionary.py edited online with Bitbucket; adding more explanations to the comments.<commit_after># -*- coding: utf-8 -*-
"""Tests for natto.dictionary."""
import re
import unittest
import natto.mecab as mecab

class TestDictionary(unittest.TestCase):
    """Tests the behavior of the natto.dictionary.DictionaryInfo class.

    Assumes that the mecab-ipadic 2.7.0-20070801 dictionary is installed.
    
    MeCab supports the following character encodings:
    - UTF-8 (sometimes displayed as UTF8)
    - UTF-16
    - SHIFT-JIS
    - EUC-JP
    """
{'fraction_non_alphanumeric': 0.10740740740740741, 'fraction_numerical': 0.020987654320987655, 'mean_word_length': 3.798816568047337, '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': '482878', 'n_tokens_mistral': 258, 'n_tokens_neox': 237, 'n_words': 77}