<commit_before>from . import settings

# Initialize Flask app
from flask import Flask

app = Flask('ggrc', instance_relative_config=True)
app.config.from_object(settings)

# Configure Flask-SQLAlchemy for app
from . import db
db.app = app
db.init_app(app)

# Configure webassets for app
#from . import assets
#app.jinja_env.add_extension('webassets.ext.jinja2.AssetsExtension')
#app.jinja_env.assets_environment = assets.environment

# Configure Jinja2 extensions for app
#app.jinja_env.add_extension('jinja2.ext.autoescape')
#app.jinja_env.add_extension('jinja2.ext.with_')
#app.jinja_env.add_extension('jinja2_hamlpy.HamlPyExtension')

# Initialize services
from .services import init_all_services
init_all_services(app)

# Initialize views
#import ggrc.views<commit_msg>Enable asset pipeline, template extensions, and `ggrc.views` in `app.py`<commit_after>from . import settings

# Initialize Flask app
from flask import Flask

app = Flask('ggrc', instance_relative_config=True)
app.config.from_object(settings)

# Configure Flask-SQLAlchemy for app
from . import db
db.app = app
db.init_app(app)

# Configure webassets for app
from . import assets
app.jinja_env.add_extension('webassets.ext.jinja2.AssetsExtension')
app.jinja_env.assets_environment = assets.environment

# Configure Jinja2 extensions for app
app.jinja_env.add_extension('jinja2.ext.autoescape')
app.jinja_env.add_extension('jinja2.ext.with_')
app.jinja_env.add_extension('jinja2_hamlpy.HamlPyExtension')

# Initialize services
from .services import init_all_services
init_all_services(app)

# Initialize views
import ggrc.views
{'fraction_non_alphanumeric': 0.09574468085106383, 'fraction_numerical': 0.006257822277847309, 'mean_word_length': 6.578199052132701, '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': '3047990', 'n_tokens_mistral': 562, 'n_tokens_neox': 543, 'n_words': 113}