<commit_before>import os
from flask import Flask, render_template
from config import SQLALCHEMY_DATABASE_URI
from flask_sqlalchemy import SQLAlchemy
# NB! Should be disabled in production
from pyinfo import info

app = Flask(__name__)

app.secret_key = os.urandom(24)
app.config['SQLALCHEMY_DATABASE_URI'] = SQLALCHEMY_DATABASE_URI
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
os.environ['DEBUG'] = "1"
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'


@app.route('/pyinfo')
def pyinfo():
    return render_template('pyinfo.html', **info)


db = SQLAlchemy(app)
# flake8: noqa
from authcontroller import *

if __name__ == "__main__":
    # This allows us to use a plain HTTP callback
    os.environ['DEBUG'] = "1"
    os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'
    app.secret_key = os.urandom(24)
    app.run(debug=True, port=5000)<commit_msg>enable DEBUG for development env [skip ci]<commit_after>import os
from flask import Flask, render_template
from config import SQLALCHEMY_DATABASE_URI
from flask_sqlalchemy import SQLAlchemy
# NB! Should be disabled in production
from pyinfo import info

app = Flask(__name__)

app.secret_key = os.urandom(24)
# NB! Disable in production
pp.config['TESTING'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = SQLALCHEMY_DATABASE_URI
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
os.environ['DEBUG'] = "1"
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'


@app.route('/pyinfo')
def pyinfo():
    return render_template('pyinfo.html', **info)


db = SQLAlchemy(app)
# flake8: noqa
from authcontroller import *

if __name__ == "__main__":
    # This allows us to use a plain HTTP callback
    os.environ['DEBUG'] = "1"
    os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'
    app.secret_key = os.urandom(24)
    app.run(debug=True, port=5000)
{'fraction_non_alphanumeric': 0.11587743732590529, 'fraction_numerical': 0.014484679665738161, 'mean_word_length': 5.554744525547445, 'pattern_counts': {'":': 2, '<': 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': '3369096', 'n_tokens_mistral': 667, 'n_tokens_neox': 644, 'n_words': 151}