<commit_before>"""
Test code for empiriciSN class.
"""
import os
import unittest
import numpy as np
from empiriciSN import empiriciSN

class empiriciSNTestCase(unittest.TestCase):
    "TestCase class for empiriciSN class."
    def setUp(self):
        """
        Set up each test with a new empiriciSN object with existing model.
        """
        self.empiriciSN=empiriciSN(model_file = '../../models/empiriciSN_model_7comp.fit')
        self.files=[]
    
    def test_GetSN(self):
        sample = self.empiriciSN.XDGMM.sample()[0]
        testdat=np.append(np.array([np.nan,np.nan,np.nan]),sample[3:])
        sn = self.empiriciSN.get_SN(testdat)
        self.assertEqual(sn.shape,(1,3))
<commit_msg>Minor update to unit tests<commit_after>"""
Test code for empiriciSN class.
"""
import unittest
import numpy as np
from empiriciSN import empiriciSN

class empiriciSNTestCase(unittest.TestCase):
    "TestCase class for empiriciSN class."
    def setUp(self):
        """
        Set up each test with a new empiriciSN object with existing model.
        """
        self.empiriciSN=empiriciSN(model_file = '../../models/empiriciSN_model_7comp.fit')
        self.files=[]
    
    def test_GetSN(self):
        sample = self.empiriciSN.XDGMM.sample()[0]
        testdat=np.append(np.array([np.nan,np.nan,np.nan]),sample[3:])
        sn = self.empiriciSN.get_SN(testdat)
        self.assertEqual(sn.shape,(1,3))

{'fraction_non_alphanumeric': 0.12420606916019761, 'fraction_numerical': 0.007057163020465773, 'mean_word_length': 3.086455331412104, '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': '3292977', 'n_tokens_mistral': 477, 'n_tokens_neox': 464, 'n_words': 102}