<commit_before>from flask import Flask
from flask_api import FlaskAPI
from flask_sqlalchemy import SQLAlchemy
from instance.config import application_config
from flask_restplus import Api, Resource, fields

db = SQLAlchemy()


def create_app(config_name):
    app = FlaskAPI(__name__, instance_relative_config=True)
    app.config.from_object(application_config[config_name])
    app.config.from_pyfile('config.py')
    app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
    db.init_app(app)

    return app
<commit_msg>create DBs<commit_after>from flask_api import FlaskAPI
from flask_sqlalchemy import SQLAlchemy
from instance.config import application_config

db = SQLAlchemy()
db.create_all()

def create_app(config_name):
    app = FlaskAPI(__name__, instance_relative_config=True)
    app.config.from_object(application_config[config_name])
    app.config.from_pyfile('config.py')
    app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
    db.init_app(app)

    return app

{'fraction_non_alphanumeric': 0.08036622583926754, 'fraction_numerical': 0.0, 'mean_word_length': 5.881118881118881, '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': '5674869', 'n_tokens_mistral': 329, 'n_tokens_neox': 312, 'n_words': 64}