<commit_before>import os
import shutil
import subprocess
import tmpfile
from unittest import TestCase

# Global test variables
tmplocation = tmpfile.mkdtemp()
venv_path = os.path.join(tmplocation,'srs_venv')
clone_path = os.path.join(tmplocation,'clone_venv')
versions = ['2.6','2.7','3.2']

def clean():
    if os.path.exists(tmplocation): shutil.rmtree(tmplocation)


class TestBase(TestCase):

    def setUp(self):
        """Clean from previous testing"""
        clean()

        """Create a virtualenv to clone"""
        assert subprocess.call(['virtualenv', venv_path]) == 0,\<commit_msg>corrected import name.<commit_after>import os
import shutil
import subprocess
import tempfile
from unittest import TestCase

# Global test variables
tmplocation = tempfile.mkdtemp()
venv_path = os.path.join(tmplocation,'srs_venv')
clone_path = os.path.join(tmplocation,'clone_venv')
versions = ['2.6','2.7','3.2']

def clean():
    if os.path.exists(tmplocation): shutil.rmtree(tmplocation)


class TestBase(TestCase):

    def setUp(self):
        """Clean from previous testing"""
        clean()

        """Create a virtualenv to clone"""
        assert subprocess.call(['virtualenv', venv_path]) == 0,\
{'fraction_non_alphanumeric': 0.13549459684123025, 'fraction_numerical': 0.011637572734829594, 'mean_word_length': 4.375, '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': '6841635', 'n_tokens_mistral': 393, 'n_tokens_neox': 382, 'n_words': 93}