<commit_before>import cbpos
from cbpos.modules import BaseModuleLoader

class ModuleLoader(BaseModuleLoader):
    dependencies = ('base', 'currency', 'auth', 'stock', 'customer')
    config = [['mod.sales', {}]]
    name = 'Sales and Debt Support'

    def load(self):
        from cbpos.mod.sales.models import Ticket, TicketLine
        return [Ticket, TicketLine]

    def test(self):
        from cbpos.mod.sales.models import Ticket, TicketLine
    
        session = cbpos.database.session()
    
        from cbpos.mod.currency.models import Currency<commit_msg>Better data integrity with JSON configuration<commit_after>import cbpos
from cbpos.modules import BaseModuleLoader

class ModuleLoader(BaseModuleLoader):
    dependencies = ('base', 'currency', 'auth', 'stock', 'customer')
    name = 'Sales and Debt Support'

    def load(self):
        from cbpos.mod.sales.models import Ticket, TicketLine
        return [Ticket, TicketLine]

    def test(self):
        from cbpos.mod.sales.models import Ticket, TicketLine
    
        session = cbpos.database.session()
    
        from cbpos.mod.currency.models import Currency
{'fraction_non_alphanumeric': 0.1011433597185576, 'fraction_numerical': 0.0, 'mean_word_length': 3.2943396226415094, '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': '5908692', 'n_tokens_mistral': 332, 'n_tokens_neox': 317, 'n_words': 90}