<commit_before>"""Compatibility routines."""

from __future__ import absolute_import

import sys

try:
    import Image  # pylint: disable=import-error,unused-import
except ImportError:
    from PIL import Image  # pylint: disable=unused-import

try:
    import ImageOps  # pylint: disable=import-error,unused-import
except ImportError:
    from PIL import ImageOps  # pylint: disable=unused-import

if sys.version_info[0] > 2:
    basestring = (str, bytes)  # pylint: disable=redefined-builtin,invalid-name
else:
    # pylint: disable=redefined-variable-type
    basestring = basestring  # pylint: disable=invalid-name
<commit_msg>Centralize compat module pylint messages.<commit_after>"""Compatibility routines."""

from __future__ import absolute_import

import sys

# pylint: disable=import-error
# pylint: disable=invalid-name
# pylint: disable=redefined-builtin
# pylint: disable=redefined-variable-type
# pylint: disable=unused-import

try:
    import Image
except ImportError:
    from PIL import Image

try:
    import ImageOps
except ImportError:
    from PIL import ImageOps

if sys.version_info[0] > 2:
    basestring = (str, bytes)
else:
    basestring = basestring

{'fraction_non_alphanumeric': 0.090754877014419, 'fraction_numerical': 0.0033927056827820186, 'mean_word_length': 4.673076923076923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '602462', 'n_tokens_mistral': 381, 'n_tokens_neox': 369, 'n_words': 98}