<commit_before># coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function

import sys

from .tests import run as run_tests
from .lint import run as run_lint


def run():
    """
    Runs the linter and tests

    :return:
        A bool - if the linter and tests ran successfully
    """

    print('Python ' + sys.version.replace('\n', ''))
    print('')
    lint_result = run_lint()
    print('\nRunning tests')
    sys.stdout.flush()
    tests_result = run_tests()

    return lint_result and tests_result<commit_msg>Don't run flake8 on Python 2.6<commit_after># coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function

import sys

from .tests import run as run_tests
if sys.version_info >= (2, 7):
    from .lint import run as run_lint


def run():
    """
    Runs the linter and tests

    :return:
        A bool - if the linter and tests ran successfully
    """

    print('Python ' + sys.version.replace('\n', ''))
    if sys.version_info >= (2, 7):
        print('')
        lint_result = run_lint()
    else:
        lint_result = True
    lint_result = run_lint()
    print('\nRunning tests')
    sys.stdout.flush()
    tests_result = run_tests()

    return lint_result and tests_result
{'fraction_non_alphanumeric': 0.1053864168618267, 'fraction_numerical': 0.00702576112412178, 'mean_word_length': 3.00625, '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': '3155243', 'n_tokens_mistral': 412, 'n_tokens_neox': 395, 'n_words': 127}