<commit_before>import sys
import os
import _winreg

import yaku.utils
import yaku.task

from yaku.tools.mscommon.common \
    import \
        read_keys, open_key, close_key, get_output
from yaku.tools.msvc \
    import \
        _exec_command_factory
<commit_msg>BUG: do not import _winreg on non-win32 platforms.<commit_after>import sys
import os
if sys.platform == "win32":
    import _winreg

import yaku.utils
import yaku.task

if sys.platform == "win32":
    from yaku.tools.mscommon.common \
        import \
            read_keys, open_key, close_key, get_output
    from yaku.tools.msvc \
        import \
            _exec_command_factory

{'fraction_non_alphanumeric': 0.07550077041602465, 'fraction_numerical': 0.009244992295839754, 'mean_word_length': 2.7790697674418605, 'pattern_counts': {'":': 2, '<': 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': '4511918', 'n_tokens_mistral': 216, 'n_tokens_neox': 212, 'n_words': 55}