<commit_before># coding: utf-8
from flask import Flask, abort, request, redirect, render_template, url_for
from log import log
import util

app = Flask(__name__)
app.config.from_pyfile('config.cfg', silent=True)

@app.route('/')
def home():
    log.info('Fetching demo gist.')
    gist_id = '5123482'
    gist = util.get_gist_by_id(gist_id)
    source = util.get_slides_source_from_gist(gist)
<commit_msg>Fix config file path error on the server<commit_after># coding: utf-8
from flask import Flask, abort, request, redirect, render_template, url_for
from log import log
import util
import os

app = Flask(__name__)
app.config.from_pyfile(os.path.join(os.path.dirname(__file__), 'config.cfg'), silent=True)

@app.route('/')
def home():
    log.info('Fetching demo gist.')
    gist_id = '5123482'
    gist = util.get_gist_by_id(gist_id)
    source = util.get_slides_source_from_gist(gist)

{'fraction_non_alphanumeric': 0.12274774774774774, 'fraction_numerical': 0.018018018018018018, 'mean_word_length': 5.0476190476190474, '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': '5113406', 'n_tokens_mistral': 335, 'n_tokens_neox': 326, 'n_words': 78}