<commit_before>from share.normalize.oai import OAICreativeWork

from share.normalize import tools

class ELISNormalizer(OAICreativeWork):

    # in the case of multiple languages takes the first and stores it
    list_languages = tools.Maybe(tools.Maybe(ctx.record, 'metadata')['oai_dc:dc'], 'dc:language'))
    if len(list_language) > 0:
        languages = tools.ParseLanguage(list_languages[0])
    else:
        languages = tools.ParseLanguage(list_languages)
<commit_msg>erased unneeded normalizer from code<commit_after>from share.normalize.oai import OAICreativeWork

from share.normalize import tools

{'fraction_non_alphanumeric': 0.08538587848932677, 'fraction_numerical': 0.003284072249589491, 'mean_word_length': 5.161616161616162, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2341620', 'n_tokens_mistral': 188, 'n_tokens_neox': 183, 'n_words': 46}