<commit_before>'''Perform database admin tasks including migrations using Alembic.
'''
import logging

from flask import current_app
from flask.cli import FlaskGroup
import click

from . import migrate, pg

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)

cli = FlaskGroup(name='db', help='Database Administration')
cli.add_command(migrate.cli)
cli.add_command(pg.cli)


@cli.command()
def create_all():
	'''Create database and objects.'''
	logger.info('creating all')
	current_app.extensions['sqlalchemy'].db.create_all()<commit_msg>Don't add default commands.<commit_after>'''Perform database admin tasks including migrations using Alembic.
'''
import logging

from flask import current_app
from flask.cli import FlaskGroup
import click

from . import migrate, pg

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)

cli = FlaskGroup(name='db', help='Database Administration', add_default_commands=False)
cli.add_command(migrate.cli)
cli.add_command(pg.cli)


@cli.command()
def create_all():
	'''Create database and objects.'''
	logger.info('creating all')
	current_app.extensions['sqlalchemy'].db.create_all()
{'fraction_non_alphanumeric': 0.12, 'fraction_numerical': 0.0, 'mean_word_length': 6.777027027027027, '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': '3738551', 'n_tokens_mistral': 354, 'n_tokens_neox': 346, 'n_words': 89}