<commit_before>from src.models import *
from src.engine import *
from src.app import app
from src.loop import loop
from fixtures import fixtures 


def create_database():
    Base.metadata.create_all(engine)


def drop_database():
    Base.metadata.drop_all(engine)

def run_loop():
    loop()

def run_application():
    app.run(debug=True)

def load_fixtures():
    for model_name in ['User', 'Message', 'Timer', 'Source']:
        records = fixtures[model_name]
        model = globals()[model_name]
        for record in records:
            try:
                r = model(**record)
                session.add(r)
                session.commit()
            except:
                session.rollback()<commit_msg>fix blocking api import<commit_after>from src.models import *
from src.engine import *
from src.app import app
from fixtures import fixtures 


def create_database():
    Base.metadata.create_all(engine)


def drop_database():
    Base.metadata.drop_all(engine)

def run_loop():
    from src.loop import loop
    loop()

def run_application():
    app.run(debug=True)

def load_fixtures():
    for model_name in ['User', 'Message', 'Timer', 'Source']:
        records = fixtures[model_name]
        model = globals()[model_name]
        for record in records:
            try:
                r = model(**record)
                session.add(r)
                session.commit()
            except:
                session.rollback()
{'fraction_non_alphanumeric': 0.106353591160221, 'fraction_numerical': 0.0, 'mean_word_length': 2.385514018691589, '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': '6141858', 'n_tokens_mistral': 425, 'n_tokens_neox': 402, 'n_words': 110}