<commit_before>#!/usr/bin/env python
"""
HiveMind-Plus Server
Developed by <NAME>
"""

# Libraries
from flask import Flask, url_for, render_template
from firebase import firebase, jsonutil

# Global Objects
app = Flask(__name__)
base = firebase.FirebaseApplication('https://hivemind-plus.firebaseio.com', None)

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

@app.route('/<username>')
def user(username):
    return render_template('user.html', username=username)

@app.route('/<username>/<aggregator>')
def aggregator(username, aggregator):
    return render_template('aggregator.html', aggregator=aggregator, username=username)
    
# Main
if __name__ == '__main__':
    app.run('0.0.0.0', port=80, debug=True)

<commit_msg>internal temp working<commit_after>#!/usr/bin/env python
"""
HiveMind-Plus Server
Developed by <NAME>
"""

# Libraries
from flask import Flask, url_for, render_template
from firebase import firebase, jsonutil

# Global Objects
app = Flask(__name__)
base = firebase.FirebaseApplication('https://hivemind-plus.firebaseio.com', None)

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

@app.route('/<username>')
def user(username):
    return render_template('user.html', username=username)

@app.route('/<username>/<aggregator>')
def aggregator(username, aggregator):
    return render_template('aggregator.html', aggregator=aggregator, username=username)

@app.error_handler(404)
def page_not_found(error):
    return render_template('page_not_found.html'), 404

# Main
if __name__ == '__main__':
    app.run('0.0.0.0', port=80, debug=True)


{'fraction_non_alphanumeric': 0.1487553126897389, 'fraction_numerical': 0.01092896174863388, 'mean_word_length': 5.866666666666666, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3125104', 'n_tokens_mistral': 562, 'n_tokens_neox': 535, 'n_words': 116}