<commit_before>from app import app
from flask.ext.pymongo import PyMongo
from flask import Flask, request, session, g, redirect, url_for, abort, \
render_template, flash

mongo = PyMongo(app)

@app.route("/")
def hello():
    online_users = mongo.db.users.find({'online': True})
    return render_template('index.html',
        online_users=online_users)

@app.route("/activities/:user")
def user_activities():
    return "Not Yet Implemented"

@app.route("/activities")
def activities():
    return "Not Yet Implemented"

@app.route("/report")
def report():
    return "Not Yet Implemented"<commit_msg>adding activities view, starting frontend logic<commit_after>from app import app
from flask.ext.pymongo import PyMongo
from flask import Flask, request, session, g, redirect, url_for, abort, \
render_template, flash

mongo = PyMongo(app)

@app.route("/")
def hello():
    online_users = mongo.db.users.find({'online': True})
    return render_template('index.html',
        online_users=online_users)

@app.route("/activities/:user", methods=['GET'])
def user_activities():
    return "Not Yet Implemented"

@app.route("/activities", methods=['GET', 'POST'])
def activities():
    return render_template('activities.html')

@app.route("/reports", methods=['GET'])
def report():
    return "Not Yet Implemented"
{'fraction_non_alphanumeric': 0.14546839299314546, 'fraction_numerical': 0.0, 'mean_word_length': 5.111627906976744, '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': '1498600', 'n_tokens_mistral': 416, 'n_tokens_neox': 410, 'n_words': 110}