<commit_before>import unittest
import vulcan
import redis

r6 = redis.Redis(host='localhost', port=6379, db=6)
r7 = redis.Redis(host='localhost', port=6379, db=7)
r8 = redis.Redis(host='localhost', port=6379, db=8)
r9 = redis.Redis(host='localhost', port=6379, db=9)

class TestVulcan(unittest.TestCase):
    """What is Kiri-kin-tha's first law of metaphysics?"""

    def setUp(self):
        """Adjust the sine wave of this magnetic envelope so that anti-neutrons can 
        pass through it but anti-gravitons cannot."""
	r6.flushdb()
	r7.flushdb()
	r8.flushdb()
	r9.flushdb()

 	self.s = vulcan.Vulcan(1000, 'strings')
 	self.l = vulcan.Vulcan(1000, 'lists')
 	self.se = vulcan.Vulcan(1000, 'sets')
 	self.z = vulcan.Vulcan(1000, 'zsets')

    def test_populate(self):
        """What is the electronic configuration of gadolinium?"""
	s = self.s
	l = self.l
	se = self.se
	z = self.z

	s.populate()
	all_keys = r6.keys('*')
	self.assertEquals(len(all_keys), 1000)
	
        l.populate()
	all_keys = r7.keys('*')
	self.assertEquals(len(all_keys), 1000)
	
        se.populate()
	all_keys = r8.keys('*')
	self.assertEquals(len(all_keys), 1000)
	
        z.populate()
	all_keys = r9.keys('*')
	self.assertEquals(len(all_keys), 1000)

	r6.flushdb()
	r7.flushdb()
	r8.flushdb()
	r9.flushdb()

if __name__ == '__main__':
    """How do you feel? ...How do you feel?"""
    unittest.main()

<commit_msg>adding tests<commit_after>import unittest
import vulcan
import redis

r6 = redis.Redis(host='localhost', port=6379, db=6)
r7 = redis.Redis(host='localhost', port=6379, db=7)
r8 = redis.Redis(host='localhost', port=6379, db=8)
r9 = redis.Redis(host='localhost', port=6379, db=9)

class TestVulcan(unittest.TestCase):
    """What is Kiri-kin-tha's first law of metaphysics?"""

    def setUp(self):
        """Adjust the sine wave of this magnetic envelope so that anti-neutrons can 
        pass through it but anti-gravitons cannot."""
	r6.flushdb()
	r7.flushdb()
	r8.flushdb()
	r9.flushdb()

 	self.strings = vulcan.Vulcan(1000, 'strings')
 	self.lists = vulcan.Vulcan(1000, 'lists')
 	self.sets = vulcan.Vulcan(1000, 'sets')
 	self.zsets = vulcan.Vulcan(1000, 'zsets')

    def test_populate(self):
        """What is the electronic configuration of gadolinium?"""
	strings = self.strings
	lists = self.lists
	sets = self.sets
	zsets = self.zsets

	strings.populate()
	all_keys = r6.keys('*')
	self.assertEquals(len(all_keys), 1000)
	
        lists.populate()
	all_keys = r7.keys('*')
	self.assertEquals(len(all_keys), 1000)
	
        sets.populate()
	all_keys = r8.keys('*')
	self.assertEquals(len(all_keys), 1000)
	
        zsets.populate()
	all_keys = r9.keys('*')
	self.assertEquals(len(all_keys), 1000)

	r6.flushdb()
	r7.flushdb()
	r8.flushdb()
	r9.flushdb()

if __name__ == '__main__':
    """How do you feel? ...How do you feel?"""
    unittest.main()


{'fraction_non_alphanumeric': 0.16067062521830247, 'fraction_numerical': 0.04750261962975899, 'mean_word_length': 3.8215488215488214, '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': '5718232', 'n_tokens_mistral': 1208, 'n_tokens_neox': 1090, 'n_words': 243}