<commit_before>import os
import mimetypes
import urlparse
import pip
from StringIO import StringIO
from pip.log import logger
from pip._vendor.requests.adapters import BaseAdapter, HTTPAdapter
from pip._vendor.requests.structures import CaseInsensitiveDict
from pip._vendor.requests import Response
from pip.download import PipSession
from pip.download import LocalFSResponse
from boto.s3.connection import S3Connection
<commit_msg>give an error if an older pip version is installed, error is cryptic otherwise (missing imports)<commit_after>import os
import mimetypes
import sys
import urlparse
from StringIO import StringIO

from boto.s3.connection import S3Connection

try:
    import pip
    from pip._vendor.requests.adapters import BaseAdapter, HTTPAdapter
    from pip._vendor.requests.structures import CaseInsensitiveDict
    from pip._vendor.requests import Response
    from pip.log import logger
    from pip.download import PipSession
    from pip.download import LocalFSResponse
except ImportError as err:
    sys.stderr.write('Error: pip<=1.5 is required ({})'.format(err))
    exit()

{'fraction_non_alphanumeric': 0.05272727272727273, 'fraction_numerical': 0.005454545454545455, 'mean_word_length': 5.150837988826815, 'pattern_counts': {'":': 0, '<': 4, '<?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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7099170', 'n_tokens_mistral': 289, 'n_tokens_neox': 282, 'n_words': 110}