<commit_before># _compat.py - Python 2/3 compatibility

import sys

PY2 = sys.version_info.major == 2


if PY2:
    input = raw_input

    apply = apply

    from itertools import imap as map, izip as zip

    def iteritems(d):
        return d.iteritems()

    from ConfigParser import SafeConfigParser as ConfigParser


else:
    input = input

    def apply(object, args=(), kwargs=None):
        if kwargs is None:<commit_msg>add parentheses around comparison<commit_after># _compat.py - Python 2/3 compatibility

import sys

PY2 = (sys.version_info.major == 2)


if PY2:
    input = raw_input

    apply = apply

    from itertools import imap as map, izip as zip

    def iteritems(d):
        return d.iteritems()

    from ConfigParser import SafeConfigParser as ConfigParser


else:
    input = input

    def apply(object, args=(), kwargs=None):
        if kwargs is None:
{'fraction_non_alphanumeric': 0.07936507936507936, 'fraction_numerical': 0.011337868480725623, 'mean_word_length': 2.8728070175438596, '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': '2446756', 'n_tokens_mistral': 284, 'n_tokens_neox': 269, 'n_words': 94}