<commit_before>#!/usr/bin/env python
from flask import Flask, render_template
from flask.ext.migrate import Migrate
from flask.ext.security import Security, SQLAlchemyUserDatastore
from db import *
from admin import admin



# --> App setup
app = Flask(__name__)
app.config['DEBUG'] = None
app.config.from_object('config_default')
app.config.from_object('config')



# --> Extension setup
db.init_app(app)
admin.init_app(app)

migrate = Migrate(app, db)

user_datastore = SQLAlchemyUserDatastore(db, User, Role)
security = Security(app, user_datastore)



# --> Register blueprints
from blueprints.my_admiral.my_admiral import my_admiral
app.register_blueprint(my_admiral, url_prefix='/admiral')



# --> Base application routes
@app.route('/')
def index():
	return render_template('index.html')<commit_msg>Just let me run it with ./kcsrv.py<commit_after>#!/usr/bin/env python
from flask import Flask, render_template
from flask.ext.migrate import Migrate
from flask.ext.security import Security, SQLAlchemyUserDatastore
from db import *
from admin import admin



# --> App setup
app = Flask(__name__)
app.config['DEBUG'] = None
app.config.from_object('config_default')
app.config.from_object('config')



# --> Extension setup
db.init_app(app)
admin.init_app(app)

migrate = Migrate(app, db)

user_datastore = SQLAlchemyUserDatastore(db, User, Role)
security = Security(app, user_datastore)



# --> Register blueprints
from blueprints.my_admiral.my_admiral import my_admiral
app.register_blueprint(my_admiral, url_prefix='/admiral')



# --> Base application routes
@app.route('/')
def index():
	return render_template('index.html')

if __name__ == '__main__':
	app.run(host='0.0.0.0', debug=True)
{'fraction_non_alphanumeric': 0.12411764705882353, 'fraction_numerical': 0.002352941176470588, 'mean_word_length': 5.593023255813954, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '6655659', 'n_tokens_mistral': 602, 'n_tokens_neox': 563, 'n_words': 132}