<commit_before>import googleSecret as hw

import unittest

class InverseTest(unittest.TestCase):
    def testInverse50(self):
        self.assertEqual(hw.inverse(50), 0.02)
    def testInverse35(self):
        self.assertAlmostEqual(hw.inverse(35), 0.02857142857142857)

class ETest(unittest.TestCase):
    def testE100(self):
        self.assertAlmostEqual(hw.e(100), 2.7182818284590455)

class ErrorTest(unittest.TestCase):
    def testError5(self):
        self.assertAlmostEqual(hw.error(5), 0.0016151617923783057)

class FactorialTest(unittest.TestCase):
    def testFactorial8(self):
        self.assertEqual(hw.factorial(8), 40320)

class GeoMeanTest(unittest.TestCase):
    def testGeoMeanFloatAns(self):
        self.assertAlmostEqual(hw.geoMean([1, 3, 3, 7]), 2.8173132472612576)
    def testGeoMeanIntAns(self):
        self.assertEqual(hw.geoMean([1, 3, 3, 9]), 3.0)

class PrimeTest(unittest.TestCase):
    def testPrimeFalse(self):
        self.assertEqual(hw.prime(13449), False)
    def testPrimeTrue(self):
        self.assertEqual(hw.prime(13441), True)

if __name__ == '__main__':
    unittest.main()<commit_msg>Updated googleSecretTests to match grading document<commit_after>import googleSecret as hw

import unittest

class InverseTest(unittest.TestCase):
    def testInverse35(self):
        self.assertEqual(round(hw.inverse(35),4), 0.0286)
    def testInverse50(self):
        self.assertEqual(round(hw.inverse(50),4), 0.02)

class ETest(unittest.TestCase):
    def testE10(self):
        self.assertEqual(round(hw.e(10),2), 2.72)
    def testE100(self):
        self.assertEqual(round(hw.e(100),4), 2.7183)

class ErrorTest(unittest.TestCase):
    def testError5(self):
        self.assertEqual(round(hw.error(5),6), 0.001615)

class FactorialTest(unittest.TestCase):
    def testFactorial8(self):
        self.assertEqual(hw.factorial(8), 40320)

class GeoMeanTest(unittest.TestCase):
    def testGeoMeanFloatAns(self):
        self.assertEqual(round(hw.geoMean([1, 3, 3, 7]),4), 2.8173)
    def testGeoMeanIntAns(self):
        self.assertEqual(round(hw.geoMean([1, 3, 3, 9]),4), 3.0)

class PrimeTest(unittest.TestCase):
    def testPrimeFalse(self):
        self.assertEqual(hw.prime(13449), False)
    def testPrimeTrue(self):
        self.assertEqual(hw.prime(13441), True)

if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.13344666383340417, 'fraction_numerical': 0.08499787505312367, 'mean_word_length': 4.173626373626374, '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': '5661598', 'n_tokens_mistral': 948, 'n_tokens_neox': 806, 'n_words': 136}