<commit_before>from __future__ import absolute_import

__version__ = '0.0.25'

import numbers  # noqa
import collections  # noqa

from equals.equals import Equals as instance_of  # noqa
from equals.constraints.anything_true import AnythingTrue  # noqa
from equals.constraints.anything_false import AnythingFalse  # noqa

anything = instance_of()
try:
    any_string = instance_of(basestring)
except NameError:
    any_string = instance_of(str)
any_number = instance_of(numbers.Number)
any_int = instance_of(int)
any_float = instance_of(float)
any_iterable = instance_of(collections.Iterable)
any_dict = instance_of(dict)
any_list = instance_of(list)
any_tuple = instance_of(tuple)
anything_false = AnythingFalse(anything)
anything_true = AnythingTrue(anything)
<commit_msg>bump to 1.0.0 add support for python 3.9/3.10<commit_after>from __future__ import absolute_import

__version__ = '1.0.0'

import numbers  # noqa
import collections  # noqa

from equals.equals import Equals as instance_of  # noqa
from equals.constraints.anything_true import AnythingTrue  # noqa
from equals.constraints.anything_false import AnythingFalse  # noqa

anything = instance_of()
try:
    any_string = instance_of(basestring)
except NameError:
    any_string = instance_of(str)
any_number = instance_of(numbers.Number)
any_int = instance_of(int)
any_float = instance_of(float)
any_iterable = instance_of(collections.Iterable)
any_dict = instance_of(dict)
any_list = instance_of(list)
any_tuple = instance_of(tuple)
anything_false = AnythingFalse(anything)
anything_true = AnythingTrue(anything)

{'fraction_non_alphanumeric': 0.0767279644895371, 'fraction_numerical': 0.009511731135066582, 'mean_word_length': 6.408450704225352, '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': '6093830', 'n_tokens_mistral': 523, 'n_tokens_neox': 502, 'n_words': 119}