<commit_before>from flask.ext.admin import Admin, BaseView, expose
from flask.ext.admin.contrib.sqlamodel import ModelView
from datamart import app, db, models

#TODO Make name configurable
admin = Admin(app, name='Datamart Admin', url='/admin')
admin.add_view(ModelView(models.Dimension, db.session))
admin.add_view(ModelView(models.Variable, db.session))
admin.add_view(ModelView(models.Facts, db.session))
<commit_msg>Switched admin to Users and Roles.<commit_after>from flask.ext.admin import Admin, BaseView, expose
from flask.ext.admin.contrib.sqlamodel import ModelView
from datamart import app, db, models

#TODO Make name configurable
admin = Admin(app, name='Datamart Admin', url='/admin')
admin.add_view(ModelView(models.User, db.session))
admin.add_view(ModelView(models.Role, db.session))

{'fraction_non_alphanumeric': 0.11596009975062344, 'fraction_numerical': 0.0, 'mean_word_length': 7.03, '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': '4355616', 'n_tokens_mistral': 259, 'n_tokens_neox': 253, 'n_words': 65}