<commit_before>
import json
import os
from flask import Flask, jsonify, render_template, url_for, request

app = Flask(__name__)

app.jinja_env.globals['static'] = (
    lambda filename: url_for('static', filename=filename))


@app.route('/hw')
def hw():
    return 'Hello World!'

@app.route('/')
def index():
    return render_template('index.html')

@app.route('/yuiasync')
def yuiasync():
    return render_template('yuiasync.html')

@app.route('/cgi-bin/<script>', methods=['GET', 'POST'])
def pymessage(script):
    if script.startswith('bbw.sh'):
        return "The agent is {0}.".format(request.args.get('agent'))
    elif script == 'pymessage.py':
        return "The agent is {0}".format(request.form['agent'])
    else:
        return jsonify({'msg': "The agent is {0}".format(request.form['agent'])})

@app.route('/jsonrpc')
def jsonrpc():
    return render_template('jsonrpc.html')

@app.route('/eic_rpcjson')
def eic_rpcjson():<commit_msg>Adding epydocs<commit_after>
import json
import os
from flask import Flask, jsonify, render_template, url_for, request

app = Flask(__name__)

app.jinja_env.globals['static'] = (
    lambda filename: url_for('static', filename=filename))


@app.route('/hw')
def hw():
    return 'Hello World!'

@app.route('/')
def index():
    return render_template('index.html')

@app.route('/epydocs')
def epydocs():
    return render_template('epydocs.html')

@app.route('/yuiasync')
def yuiasync():
    return render_template('yuiasync.html')

@app.route('/cgi-bin/<script>', methods=['GET', 'POST'])
def pymessage(script):
    if script.startswith('bbw.sh'):
        return "The agent is {0}.".format(request.args.get('agent'))
    elif script == 'pymessage.py':
        return "The agent is {0}".format(request.form['agent'])
    else:
        return jsonify({'msg': "The agent is {0}".format(request.form['agent'])})

@app.route('/jsonrpc')
def jsonrpc():
    return render_template('jsonrpc.html')

@app.route('/eic_rpcjson')
def eic_rpcjson():
{'fraction_non_alphanumeric': 0.18432948267202412, 'fraction_numerical': 0.0030135610246107484, 'mean_word_length': 4.643059490084986, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7328068', 'n_tokens_mistral': 687, 'n_tokens_neox': 677, 'n_words': 147}