<commit_before># -*- coding: utf-8 -*-
# License: GNU GPL2 
# Author: Pythy <<EMAIL>>
"""
Simple processing for russian strings
"""

__id__ = __revision__ = "$Id$"
__url__ = "$URL$"
__all__ = ["numeral", "dt", "translit", "test", "utils"]

# версия PyTils
VERSION_MAJOR = 0  #: Major version of PyTils (i.e. branch)
VERSION_MINOR = 1  #: Minor version of PyTils (i.e. release)
VERSION_TINY = 0   #: Tiny version of PyTils (i.e. subrelease)

VERSION = "%d.%d.%d" % (VERSION_MAJOR, VERSION_MINOR, VERSION_TINY)  #: Version's string

REL_DATE = '20060902'  #: Release date

def _get_svn_date_from_id(id_string):
    """Returns date of last update (extract from __id__)"""
    if id_string.replace('$', '') == "Id":
        return REL_DATE
    else:
        return id_string.split()[3].replace('-', '')


_module_dates = [_get_svn_date_from_id(__id__), ]  #: Last changes in submodules

# импорт модулей
for _module_name in __all__:
    _imported_module = __import__("pytils."+_module_name,
                                   globals(),
                                   locals(),
                                   ["pytils"])
    _module_dates.append(_get_svn_date_from_id(_imported_module.__id__))

SVN_DATE = max(_module_dates)  #: Last change in submodules
<commit_msg>Version 0.2.0 ready to go!<commit_after># -*- coding: utf-8 -*-
# License: GNU GPL2 
# Author: Pythy <<EMAIL>>
"""
Simple processing for russian strings
"""

__id__ = __revision__ = "$Id$"
__url__ = "$URL$"
__all__ = ["numeral", "dt", "translit", "test", "utils"]

# версия PyTils
VERSION_MAJOR = 0  #: Major version of PyTils (i.e. branch)
VERSION_MINOR = 2  #: Minor version of PyTils (i.e. release)
VERSION_TINY = 0   #: Tiny version of PyTils (i.e. subrelease)

VERSION = "%d.%d.%d" % (VERSION_MAJOR, VERSION_MINOR, VERSION_TINY)  #: Version's string

REL_DATE = '20061029'  #: Release date

def _get_svn_date_from_id(id_string):
    """Returns date of last update (extract from __id__)"""
    if id_string.replace('$', '') == "Id":
        return REL_DATE
    else:
        return id_string.split()[3].replace('-', '')


_module_dates = [_get_svn_date_from_id(__id__), ]  #: Last changes in submodules

# импорт модулей
for _module_name in __all__:
    _imported_module = __import__("pytils."+_module_name,
                                   globals(),
                                   locals(),
                                   ["pytils"])
    _module_dates.append(_get_svn_date_from_id(_imported_module.__id__))

SVN_DATE = max(_module_dates)  #: Last change in submodules

{'fraction_non_alphanumeric': 0.13894324853228962, 'fraction_numerical': 0.01213307240704501, 'mean_word_length': 3.012558869701727, 'pattern_counts': {'":': 2, '<': 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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5729656', 'n_tokens_mistral': 935, 'n_tokens_neox': 901, 'n_words': 212}