<commit_before>from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import LoginManager
from flask.ext.mail import Mail

# @TODO use application factory approach
app = Flask(__name__)
app.config.from_object('notejam.config')

db = SQLAlchemy(app)

login_manager = LoginManager()
login_manager.login_view = "signin"
login_manager.setup_app(app)

mail = Mail()
mail.init_app(app)

from notejam import views<commit_msg>Flask: changed lm.setup_app to lm.init_app<commit_after>from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import LoginManager
from flask.ext.mail import Mail

# @TODO use application factory approach
app = Flask(__name__)
app.config.from_object('notejam.config')

db = SQLAlchemy(app)

login_manager = LoginManager()
login_manager.login_view = "signin"
login_manager.init_app(app)

mail = Mail()
mail.init_app(app)

from notejam import views
{'fraction_non_alphanumeric': 0.0890557939914163, 'fraction_numerical': 0.0, 'mean_word_length': 6.346456692913386, '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': '4791007', 'n_tokens_mistral': 319, 'n_tokens_neox': 300, 'n_words': 79}