<commit_before>import unittest
import evedb

class KnownValueItems(unittest.TestCase):
    def test_name_Tritanium(self):
        dbman = evedb.DB_Manager("evedb", "postgres", "postgrespass")
        item = dbman.item_by_name("Tritanium")
        self.assertEqual(item, ("Tritanium", 34, 0.01, 18))

    def test_id_34(self):
        dbman = evedb.DB_Manager("evedb", "postgres", "postgrespass")
        item = dbman.item_by_id(34)
        self.assertEqual(item, ("Tritanium", 34, 0.01, 18))

    def test_material_18(self):
        dbman = evedb.DB_Manager("evedb", "postgres", "postgrespass")
        materials = dbman.materials(18)
        self.assertEqual(materials, [(18, 34, 256), (18, 35, 512), 
                (18, 36, 256)])

    def test_market_group_5(self):
        dbman = evedb.DB_Manager("evedb", "postgres", "postgrespass")
        market_group = dbman.market_group(5)
        self.assertEqual(market_group, ("Standard Frigates", 5, 1361))

if __name__ == "__main__":
    unittest.main()<commit_msg>added test for case when market group parent is NULL - get a None<commit_after>import unittest
import evedb

class KnownValueItems(unittest.TestCase):
    def test_name_Tritanium(self):
        dbman = evedb.DB_Manager("evedb", "postgres", "postgrespass")
        item = dbman.item_by_name("Tritanium")
        self.assertEqual(item, ("Tritanium", 34, 0.01, 18))

    def test_id_34(self):
        dbman = evedb.DB_Manager("evedb", "postgres", "postgrespass")
        item = dbman.item_by_id(34)
        self.assertEqual(item, ("Tritanium", 34, 0.01, 18))

    def test_material_18(self):
        dbman = evedb.DB_Manager("evedb", "postgres", "postgrespass")
        materials = dbman.materials(18)
        self.assertEqual(materials, [(18, 34, 256), (18, 35, 512), 
                (18, 36, 256)])

    def test_market_group_5(self):
        dbman = evedb.DB_Manager("evedb", "postgres", "postgrespass")
        market_group = dbman.market_group(5)
        self.assertEqual(market_group, ("Standard Frigates", 5, 1361))

    def test_market_group_with_NULL(self):
        dbman = evedb.DB_Manager("evedb", "postgres", "postgrespass")
        market_group = dbman.market_group(2)
        self.assertEqual(market_group[2], None)

if __name__ == "__main__":
    unittest.main()
{'fraction_non_alphanumeric': 0.1396769969445657, 'fraction_numerical': 0.044522042776080316, 'mean_word_length': 3.4332688588007736, 'pattern_counts': {'":': 2, '<': 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': '2916938', 'n_tokens_mistral': 889, 'n_tokens_neox': 796, 'n_words': 155}