<commit_before>'''Calls pylint with a special set of parameters.'''

import sys
import os

if sys.version_info[0] == 2:
    if sys.version_info[1] < 7:
        print("pylint not supported for Python < 2.7. Skipping.")
        sys.exit(0)


# check if pylint is installed and import it
try:
    from pylint import lint
except ImportError:
    print("Can't import module pylint. Did you install it?")
    sys.exit(-1)


# either use the files given on the command line or all '*.py' files
# located in and beyond the working directory
FILES = []

# pylint: disable=invalid-name
argc = len(sys.argv)
if argc > 1:
    FILES = sys.argv[1:argc]
else:
    for dirpath, dirnames, filenames in os.walk(os.getcwd()):
        FILES.extend(
            os.path.join(dirpath, filename)
            for filename in filenames
            if ".py" == filename[-3:]
        )

# A list of messages that should not be printed by pylint.
SUPRESSED_MESSAGES = [
    # 'I0011',  # Inline option disables a message or a messages category.
    # 'too-few-public-methods',
    # 'too-many-public-methods',
    'fixme',
    'locally-disabled',<commit_msg>debugging Travis...<commit_after>'''Calls pylint with a special set of parameters.'''

import sys
import os

if sys.version_info[0] == 2:
    if sys.version_info[1] < 7:
        print("pylint not supported for Python < 2.7. Skipping.")
        sys.exit(0)

# check if pylint is installed and import it
try:
    from pylint import lint
except ImportError:
    print("Can't import module pylint. Did you install it?")
    sys.exit(-1)

# either use the files given on the command line or all '*.py' files
# located in and beyond the working directory
FILES = []

# pylint: disable=invalid-name
argc = len(sys.argv)
if argc > 1:
    FILES = sys.argv[1:argc]
else:
    for dirpath, dirnames, filenames in os.walk(os.getcwd()):
        FILES.extend(
            os.path.join(dirpath, filename)
            for filename in filenames
            if ".py" == filename[-3:]
        )

# A list of messages that should not be printed by pylint.
SUPRESSED_MESSAGES = [
    # 'I0011',  # Inline option disables a message or a messages category.
    # 'too-few-public-methods',
    # 'too-many-public-methods',
    'fixme',
    'locally-disabled',
{'fraction_non_alphanumeric': 0.11439929328621908, 'fraction_numerical': 0.013250883392226149, 'mean_word_length': 2.83248730964467, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1509911', 'n_tokens_mistral': 761, 'n_tokens_neox': 723, 'n_words': 246}