<commit_before>from serializer import serializer
from serializer.prot import jsonlib


def json_serialize(dict_data):
    Serializer = serializer.Serializer(jsonlib.Json())
    return Serializer.dumps(dict_data)


def json_deserialize(raw_data):
    Serializer = serializer.Serializer(jsonlib.Json())
    return Serializer.loads(raw_data)<commit_msg>serializer, test: Extract duplicate initialization<commit_after>from serializer import serializer
from serializer.prot import jsonlib


Serializer = serializer.Serializer(jsonlib.Json())

def json_serialize(dict_data):
    return Serializer.dumps(dict_data)


def json_deserialize(raw_data):
    return Serializer.loads(raw_data)
{'fraction_non_alphanumeric': 0.08100147275405008, 'fraction_numerical': 0.0, 'mean_word_length': 6.640449438202247, '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': '4369535', 'n_tokens_mistral': 197, 'n_tokens_neox': 192, 'n_words': 41}