<commit_before>from flask import Flask, request
import os
from bson import ObjectId
from bson import json_util as json
try:
    from flask_pymongo import PyMongo
except Exception as e:
    print("You should install flask-pymongo")
    print(e)

app = Flask(__name__)

app.config['MONGO_HOST'] = os.environ.get('MONGO_HOST')
app.config['MONGO_PORT'] = os.environ.get('MONGO_PORT','27107')
app.config['MONGO_DBNAME'] = os.environ.get('MONGO_DBNAME',app.name)
app.config['MONGO_USERNAME'] = os.environ.get('MONGO_USERNAME')
app.config['MONGO_PASSWORD'] = os.environ.get('MONGO_PASSWORD')
app.config['MONGO_CONNECT'] = False

mongo = PyMongo(app)

@app.route('/')
def home():
    message = [os.environ.get('MESSAGE', 'Hello World!')]
    message.append("<h2>ENVIRONMENT VARIABLES</h2>")
    message.append('<table>')
    for k,v in os.environ.items():
        message.append("<tr><td>%s</td><td>%s</td></tr>" % (k,v))
    message.append('</table>')
    return ''.join(message)

@app.route('/healthz')
def healthz():<commit_msg>temp commit<commit_after>from flask import Flask, request
import os
from bson import ObjectId
from bson import json_util as json
try:
    from flask_pymongo import PyMongo
except Exception as e:
    print("You should install flask-pymongo")
    print(e)

app = Flask(__name__)

app.config['MONGO_HOST'] = os.environ.get('MONGO_HOST')
app.config['MONGO_PORT'] = os.environ.get('MONGO_PORT','27107')
app.config['MONGO_DBNAME'] = os.environ.get('MONGO_DBNAME',app.name)
app.config['MONGO_USERNAME'] = os.environ.get('MONGO_USERNAME')
app.config['MONGO_PASSWORD'] = os.environ.get('MONGO_PASSWORD')
app.config['MONGO_CONNECT'] = False

mongo = PyMongo(app)

@app.route('/')
def home():
    message = [os.environ.get('MESSAGE', 'Hello World!')]
    message.append("HLKSHKDFhlf")
    message.append("<h2>ENVIRONMENT VARIABLES</h2>")
    message.append('<table>')
    for k,v in os.environ.items():
        message.append("<tr><td>%s</td><td>%s</td></tr>" % (k,v))
    message.append('</table>')
    return ''.join(message)

@app.route('/healthz')
def healthz():
{'fraction_non_alphanumeric': 0.18046198267564967, 'fraction_numerical': 0.006737247353224254, 'mean_word_length': 5.224550898203593, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '592358', 'n_tokens_mistral': 784, 'n_tokens_neox': 771, 'n_words': 139}