<commit_before>'''backported compatibility functions for Python's collections

'''

try:
    #python >= 2.7
    from collections import OrderedDict
except ImportError:
    #http://code.activestate.com/recipes/576693/
    #author: <NAME>
    from .ordereddict import OrderedDict

try:
    #python >= 2.7
    from collections import Counter
except ImportError:
    #http://code.activestate.com/recipes/576611/<commit_msg>Require absolute imports in the compat.collections module.<commit_after>'''backported compatibility functions for Python's collections

'''
from __future__ import absolute_import

try:
    #python >= 2.7
    from collections import OrderedDict
except ImportError:
    #http://code.activestate.com/recipes/576693/
    #author: <NAME>
    from .ordereddict import OrderedDict

try:
    #python >= 2.7
    from collections import Counter
except ImportError:
    #http://code.activestate.com/recipes/576611/
{'fraction_non_alphanumeric': 0.09978308026030369, 'fraction_numerical': 0.03470715835140998, 'mean_word_length': 3.9891891891891893, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2867076', 'n_tokens_mistral': 293, 'n_tokens_neox': 268, 'n_words': 73}