<commit_before>import sys, os

# change path to parent directory to import modules
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from steerclear import db

if __name__ == "__main__":


	db.drop_all()
	db.create_all()<commit_msg>updated create_db.py to also create the student and admin roles after dropping all tables<commit_after>import sys, os

# change path to parent directory to import modules
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from steerclear import db
from steerclear.models import Role

if __name__ == "__main__":


    db.drop_all()
    db.create_all()
    

    student_role = Role(name='student', description='Student Role')
    admin_role = Role(name='admin', description='Admin Role')
    db.session.add_all([student_role, admin_role])
    db.session.commit()

{'fraction_non_alphanumeric': 0.11425206124852769, 'fraction_numerical': 0.0, 'mean_word_length': 4.902777777777778, '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': '5768820', 'n_tokens_mistral': 271, 'n_tokens_neox': 264, 'n_words': 69}