<commit_before>import os
from flask import Flask
from flask.ext import restful
from flask.ext.pymongo import PyMongo
from flask import make_response
from bson.json_util import dumps

# ----- Define MongoDB variables -----
MONGO_URL = os.environ.get('MONGO_URL')
if not MONGO_URL:
    #MONGO_URL = "mongodb://localhost:27017/off-fr";
    MONGO_URL = "mongodb://offread:offapiread@localhost:27017/off-fr";

app = Flask(__name__)

app.config['MONGO_URI'] = MONGO_URL
app.config['MONGO_DBNAME'] = 'off-fr'

log = logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)<commit_msg>Fix bug logging<commit_after>import os
from flask import Flask
from flask.ext import restful
from flask.ext.pymongo import PyMongo
from flask import make_response
from bson.json_util import dumps
import logging

# ----- Define MongoDB variables -----
MONGO_URL = os.environ.get('MONGO_URL')
if not MONGO_URL:
    #MONGO_URL = "mongodb://localhost:27017/off-fr";
    MONGO_URL = "mongodb://offread:offapiread@localhost:27017/off-fr";

app = Flask(__name__)

app.config['MONGO_URI'] = MONGO_URL
app.config['MONGO_DBNAME'] = 'off-fr'

log = logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)
{'fraction_non_alphanumeric': 0.13128729752770674, 'fraction_numerical': 0.017050298380221655, 'mean_word_length': 5.082901554404145, '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': '2337579', 'n_tokens_mistral': 452, 'n_tokens_neox': 414, 'n_words': 89}