<commit_before>'''set up basepair package'''
from __future__ import print_function
import sys

import requests

from .utils import colors
# from .api import basepair

__title__ = 'basepair'
__version__ = '1.6.9'
__copyright__ = 'Copyright [2017] - [2020] Basepair INC'


JSON_URL = 'https://pypi.python.org/pypi/{}/json'.format(__title__)
try:
    resp = requests.get(JSON_URL, timeout=1)
    if resp.status_code == 200:
        latest_version = resp.json()['info']['version']
        if latest_version != __version__:
            print(colors.color.warning(
                'WARNING: The latest version of basepair package is {}. '
                'Please upgrade to avail the latest features and bug-fixes'
                ''.format(latest_version)), file=sys.stderr)
except (requests.exceptions.ConnectionError, requests.exceptions.ReadTimeout):<commit_msg>Updating version.<commit_after>'''set up basepair package'''
from __future__ import print_function
import sys

import requests

from .utils import colors
# from .api import basepair

__title__ = 'basepair'
__version__ = '1.7.0'
__copyright__ = 'Copyright [2017] - [2020] Basepair INC'


JSON_URL = 'https://pypi.python.org/pypi/{}/json'.format(__title__)
try:
    resp = requests.get(JSON_URL, timeout=1)
    if resp.status_code == 200:
        latest_version = resp.json()['info']['version']
        if latest_version != __version__:
            print(colors.color.warning(
                'WARNING: The latest version of basepair package is {}. '
                'Please upgrade to avail the latest features and bug-fixes'
                ''.format(latest_version)), file=sys.stderr)
except (requests.exceptions.ConnectionError, requests.exceptions.ReadTimeout):
{'fraction_non_alphanumeric': 0.1177494199535963, 'fraction_numerical': 0.01740139211136891, 'mean_word_length': 3.4344473007712084, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1161187', 'n_tokens_mistral': 525, 'n_tokens_neox': 492, 'n_words': 134}