<commit_before>import simplejson as json

def dict_to_bytes(the_dict):
    str = json.dumps(the_dict)
    return str.encode()
    
def string_to_dict(str):
    return json.loads(str)<commit_msg>code cleanup /BB<commit_after>import simplejson as json

def dict_to_bytes(the_dict):
    str = json.dumps(the_dict)
    return str.encode()
{'fraction_non_alphanumeric': 0.09880239520958084, 'fraction_numerical': 0.0, 'mean_word_length': 4.583333333333333, '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': '6566245', 'n_tokens_mistral': 117, 'n_tokens_neox': 116, 'n_words': 25}