<commit_before>from logging import FileHandler
import logging

from flask import Flask, render_template, request, jsonify
import psycopg2

from dbManager import Queries, dbpass
from model import genre_list

# This file is the first that is called when someone goes to a page on our website.
# It looks at the url that they entered and decides what computation to do and what
#   template to show them.

app = Flask(__name__)

app.config['APP_NAME'] = "Don't Care Radio"
app.config.from_pyfile('../conf/flask.conf.py')
file_handler = FileHandler('/var/log/flask/info.log')
file_handler.setLevel(logging.INFO)<commit_msg>Changed path for flask template dir.<commit_after>from logging import FileHandler
import logging

from flask import Flask, render_template, request, jsonify
import psycopg2

from dbManager import Queries, dbpass
from model import genre_list

# This file is the first that is called when someone goes to a page on our website.
# It looks at the url that they entered and decides what computation to do and what
#   template to show them.

app = Flask(__name__, template_folder="../templates")

app.config['APP_NAME'] = "Don't Care Radio"
app.config.from_pyfile('../conf/flask.conf.py')
file_handler = FileHandler('/var/log/flask/info.log')
file_handler.setLevel(logging.INFO)
{'fraction_non_alphanumeric': 0.08352668213457076, 'fraction_numerical': 0.0015467904098994587, 'mean_word_length': 5.075117370892019, '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': '1758714', 'n_tokens_mistral': 377, 'n_tokens_neox': 370, 'n_words': 147}