<commit_before>from ubertool.ubertool_models.earthworm.earthworm_exe import Earthworm
import pandas as pd
import unittest
import numpy.testing as npt

df_empty = pd.DataFrame()
earthworm_empty = Earthworm(df_empty, df_empty)

test = {}


class TestEarthworm(unittest.TestCase):
    """
    Unit tests for earthworm model.
    """
    def setUp(self):
        """
        setup the test as needed
        e.g. pandas to open stir qaqc csv
        Read qaqc csv and create pandas DataFrames for inputs and expected outputs
        :return:
        """
        pass

    def tearDown(self):
        """
        teardown called after each test
        e.g. maybe write test results to some text file
        :return:
        """
        pass

    def test_earthworm_fugacity(self):
        """<commit_msg>updating paths for packages and running unit tests<commit_after>import pandas as pd
import unittest
import numpy.testing as npt
import sys
import os
print 'PYTHONPATH: ' + str(os.environ['HOME'])
try:
    user_paths = os.environ['PYTHONPATH'].split(os.pathsep)
except KeyError:
    user_paths = []
print 'SYS.PATH: ' +str(user_paths)
sys.path.append(os.path.join('..', 'earthworm'))
try:
    user_paths = os.environ['PYTHONPATH'].split(os.pathsep)
except KeyError:
    user_paths = []
print 'SYS.PATH updated: ' +str(user_paths)
from earthworm_exe import Earthworm
import module_in_src_folder



df_empty = pd.DataFrame()
earthworm_empty = Earthworm(df_empty, df_empty)

test = {}


class TestEarthworm(unittest.TestCase):
    """
    Unit tests for earthworm model.
    """
    def setUp(self):
        """
        setup the test as needed
        e.g. pandas to open stir qaqc csv
        Read qaqc csv and create pandas DataFrames for inputs and expected outputs
        :return:
        """
        pass

    def tearDown(self):
        """
        teardown called after each test
        e.g. maybe write test results to some text file
        :return:
        """
        pass

    def test_earthworm_fugacity(self):
        """
{'fraction_non_alphanumeric': 0.09287469287469287, 'fraction_numerical': 0.0, 'mean_word_length': 2.675090252707581, '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': '6813842', 'n_tokens_mistral': 659, 'n_tokens_neox': 610, 'n_words': 187}