<commit_before>import logging

class Helper(object):
    @staticmethod
    def _widechar_to_ascii(s):
        return ''.join([chr(c) for c in s if c != 0])

    @staticmethod
    def logger():
        logger = logging.getLogger('fs_ntfs')
        logger.setLevel(logging.DEBUG)
        return logger
<commit_msg>decode windows widechar as utf16 instead of just removing nulls<commit_after>import logging

class Helper(object):
    @staticmethod
    def _widechar_to_ascii(s):
        return s.decode("utf-16").strip('\x00')

    @staticmethod
    def logger():
        logger = logging.getLogger('fs_ntfs')
        logger.setLevel(logging.DEBUG)
        return logger

{'fraction_non_alphanumeric': 0.1062874251497006, 'fraction_numerical': 0.010479041916167664, 'mean_word_length': 3.0545454545454547, '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': '3051264', 'n_tokens_mistral': 209, 'n_tokens_neox': 201, 'n_words': 50}