<commit_before>import logging
import logging.config
import os

from flask import abort, Flask, jsonify, render_template

from environments.environments import environments
from releases.releases import releases

app = Flask(__name__)
app.config.from_object("observatory.settings")
if "OBSERVATORY_CONFIG" in os.environ:
    app.config.from_envvar("OBSERVATORY_CONFIG")

logging_conf = app.config.get("LOGGING_CONF")
if logging_conf and os.path.exists(logging_conf):
    logging.config.fileConfig(logging_conf)

logger_name = app.config.get("LOGGER_NAME")

app.register_blueprint(environments, url_prefix='/environments')
app.register_blueprint(releases, url_prefix='/releases')

@app.route("/")
def index():
    return render_template('index.html')<commit_msg>shuffled json methods to the /api/ endpoint<commit_after>import logging
import logging.config
import os

from flask import abort, Flask, jsonify, render_template

from environments.environments import environments
from releases.releases import releases

app = Flask(__name__)
app.config.from_object("observatory.settings")
if "OBSERVATORY_CONFIG" in os.environ:
    app.config.from_envvar("OBSERVATORY_CONFIG")

logging_conf = app.config.get("LOGGING_CONF")
if logging_conf and os.path.exists(logging_conf):
    logging.config.fileConfig(logging_conf)

logger_name = app.config.get("LOGGER_NAME")

app.register_blueprint(environments, url_prefix='/api/environments')
app.register_blueprint(releases, url_prefix='/api/releases')

@app.route("/")
def index():
    return render_template('index.html')
{'fraction_non_alphanumeric': 0.10911424903722722, 'fraction_numerical': 0.0, 'mean_word_length': 6.994871794871795, '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': '2439993', 'n_tokens_mistral': 492, 'n_tokens_neox': 481, 'n_words': 99}