<commit_before>from decimal import Decimal

try:
    # Favor the Py3 module if available
    from collections.abc import Sequence
except ImportError:
    # Fall back to the Py2 module if we have to
    from collections import Sequence


class NanoDay(object):
    """A pynano historical Day object.

    These objects provide access to historical data for a particular day from
    the history API.
    """
    # Data for this object<commit_msg>Py2 compatibility<commit_after>from decimal import Decimal

try:
    # Favor the Py3 module if available
    from collections.abc import Sequence
except ImportError:
    # Fall back to the Py2 module if we have to
    from collections import Sequence
    # And since we now know we're on Py2, get Py3-style super()
    from builtins import super


class NanoDay(object):
    """A pynano historical Day object.

    These objects provide access to historical data for a particular day from
    the history API.
    """
    # Data for this object
{'fraction_non_alphanumeric': 0.046511627906976744, 'fraction_numerical': 0.007077856420626896, 'mean_word_length': 3.2489270386266096, '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': '7339650', 'n_tokens_mistral': 262, 'n_tokens_neox': 250, 'n_words': 129}