<commit_before>import sys

from exit import err_exit


class Python(object):
    """Python interpreter abstraction."""

    @property
    def python(self):
        return sys.executable

    def __str__(self):
        return self.python

    def is_valid_python(self):
        return sys.version_info[:2] >= (2, 6)

    def check_valid_python(self):
        if not self.is_valid_python():
            err_exit('Python >= 2.6 required')<commit_msg>Reject Python 3.x.<commit_after>import sys

from exit import err_exit


class Python(object):
    """Python interpreter abstraction."""

    @property
    def python(self):
        return sys.executable

    def __str__(self):
        return self.python

    def is_valid_python(self):
        return (sys.version_info[:2] >= (2, 6) and
                sys.version_info[:2] < (3, 0))

    def check_valid_python(self):
        if not self.is_valid_python():
            err_exit('Python 2.6 or 2.7 required')
{'fraction_non_alphanumeric': 0.11204188481675392, 'fraction_numerical': 0.016753926701570682, 'mean_word_length': 2.6628352490421454, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '6166805', 'n_tokens_mistral': 311, 'n_tokens_neox': 282, 'n_words': 75}