<commit_before>from flask import Flask
from core import db


def create_app(config_path=None):
    app = Flask(__name__)
    app.config.from_object(
        config_path if config_path else 'config.DevelopmentConfig')

    from recommender.controller import rec_api

    app.register_blueprint(rec_api)

    db.init_app(app)

    with app.app_context():
        from . import models
        db.create_all()

    return app<commit_msg>no automatic db creation via db.create_all()<commit_after>from flask import Flask
from core import db


def create_app(config_path=None):
    app = Flask(__name__)
    app.config.from_object(
        config_path if config_path else 'config.DevelopmentConfig')

    from recommender.controller import rec_api

    app.register_blueprint(rec_api)

    db.init_app(app)

    return app
{'fraction_non_alphanumeric': 0.07239263803680981, 'fraction_numerical': 0.0, 'mean_word_length': 3.5842696629213484, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1165108', 'n_tokens_mistral': 261, 'n_tokens_neox': 241, 'n_words': 62}