<commit_before># -*- encoding: utf-8 -*-
from flask_migrate import Migrate
from flask_migrate import MigrateCommand
from flask_script import Manager

import config

from lazyblacksmith.app import create_app
from lazyblacksmith.commands.manual_celery_tasks import ManualCeleryTasks
from lazyblacksmith.commands.sde_import import SdeImport
from lazyblacksmith.models import db

app = create_app(config)

db.init_app(app)
migrate = Migrate(app, db)

manager = Manager(app)
manager.add_command('db', MigrateCommand)
manager.add_command('sde_import', SdeImport)
manager.add_command('celery_task', ManualCeleryTasks)

if __name__ == '__main__':
    manager.run()
<commit_msg>Add lb_admin command to manage.py<commit_after># -*- encoding: utf-8 -*-
from flask_migrate import Migrate
from flask_migrate import MigrateCommand
from flask_script import Manager

import config

from lazyblacksmith.app import create_app
from lazyblacksmith.commands.admin import LbAdmin
from lazyblacksmith.commands.manual_celery_tasks import ManualCeleryTasks
from lazyblacksmith.commands.sde_import import SdeImport
from lazyblacksmith.models import db

app = create_app(config)

db.init_app(app)
migrate = Migrate(app, db)

manager = Manager(app)
manager.add_command('db', MigrateCommand)
manager.add_command('sde_import', SdeImport)
manager.add_command('celery_task', ManualCeleryTasks)
manager.add_command('lb_admin', LbAdmin)

if __name__ == '__main__':
    manager.run()

{'fraction_non_alphanumeric': 0.08488612836438923, 'fraction_numerical': 0.0013802622498274672, 'mean_word_length': 7.011049723756906, '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': '1481041', 'n_tokens_mistral': 473, 'n_tokens_neox': 458, 'n_words': 112}