<commit_before># coding: utf-8
from __future__ import unicode_literals

from fabric.api import task, local, run, lcd, cd, env
from os.path import exists as file_exists
from fabtools.python import virtualenv
from os import path

from . import eg


PWD = path.join(path.dirname(__file__), '..')
VENV_DIR = path.join(PWD, '.env')



@task
def env():
    if file_exists('.env'):
        local('rm -rf .env')
    local('virtualenv .env')
    with virtualenv(VENV_DIR):
        local('pip install --upgrade setuptools')
        local('pip install -r requirements.txt')
        local('pip install pytest')

@task
def make():
    with virtualenv(VENV_DIR):
        with lcd(PWD):
            local('python setup.py build_ext --inplace')

@task
def clean():
    with lcd(PWD):
        local('python setup.py clean --all')

@task
def test():
    with virtualenv(VENV_DIR):
        with lcd(PWD):
            local('python -m pytest -x thinc')<commit_msg>Fix formatting<commit_after># coding: utf-8
from __future__ import unicode_literals

from fabric.api import task, local, run, lcd, cd, env
from os.path import exists as file_exists
from fabtools.python import virtualenv
from os import path

from . import eg


PWD = path.join(path.dirname(__file__), '..')
VENV_DIR = path.join(PWD, '.env')



@task
def env():
    if file_exists('.env'):
        local('rm -rf .env')
    local('virtualenv .env')
    with virtualenv(VENV_DIR):
        local('pip install --upgrade setuptools')
        local('pip install -r requirements.txt')
        local('pip install pytest')


@task
def make():
    with virtualenv(VENV_DIR):
        with lcd(PWD):
            local('python setup.py build_ext --inplace')


@task
def clean():
    with lcd(PWD):
        local('python setup.py clean --all')


@task
def test():
    with virtualenv(VENV_DIR):
        with lcd(PWD):
            local('python -m pytest -x thinc')
{'fraction_non_alphanumeric': 0.12896405919661733, 'fraction_numerical': 0.0010570824524312897, 'mean_word_length': 2.951983298538622, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7087369', 'n_tokens_mistral': 628, 'n_tokens_neox': 611, 'n_words': 186}