<commit_before>#!/usr/bin/env python

from pyhmsa.datafile import DataFile
from pyhmsa.type.language import langstr
datafile = DataFile()

author = langstr('<NAME>', {'ru': u'<NAME>'})
datafile.header.author = author

print(datafile.header.author.alternatives['ru']) # Returns ...<commit_msg>Replace name in alternative language to prevent compilation problems with LaTeX<commit_after>#!/usr/bin/env python

from pyhmsa.datafile import DataFile
from pyhmsa.type.language import langstr
datafile = DataFile()

author = langstr('<NAME>', {'de': u'<NAME>'})
datafile.header.author = author

print(datafile.header.author.alternatives['de']) # Returns ...
{'fraction_non_alphanumeric': 0.14461538461538462, 'fraction_numerical': 0.0, 'mean_word_length': 6.0, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2997026', 'n_tokens_mistral': 205, 'n_tokens_neox': 203, 'n_words': 50}