<commit_before>import os, pymongo, datetime
from flask import Flask, request

app = Flask(__name__)

client=pymongo.MongoClient("mongodb://labmacambira:<EMAIL>:31948/aaserver")

@app.route('/shout/')
def shout():
    """Chamado com ?nick=prestoppc&shout=aa bb cc: codando o desenhado."""
    print request.args
    print request.args.get("tkey","")
    nick=request.args.get("nick","")
    shout=request.args.get("shout","")
    now=datetime.datetime.now()
    print nick, shout, now
    client.aaserver.shouts.insert({"time":now,"nick":nick,"shout":shout})
    return 'Hello World!'

@app.route('/')
def hello():
    return 'Hello World!'
<commit_msg>feito cliente minimo junto ao server<commit_after>import os, pymongo, datetime, string
from flask import Flask, request

app = Flask(__name__)


@app.route('/minimumClient/')
def minimumClient():
    client=pymongo.MongoClient("mongodb://labmacambira:<EMAIL>:31948/aaserver")
    shouts=client.aaserver.shouts.find({},{"_id":0})
    shouts=string.join([str(ss) for ss in shouts],"<br />")
    print shouts
    return shouts

@app.route('/shout/')
def shout():
    """Chamado com ?nick=prestoppc&shout=aa bb cc: codando o desenhado."""
    print request.args
    print request.args.get("tkey","")
    nick=request.args.get("nick","")
    shout=request.args.get("shout","")
    now=datetime.datetime.now()
    print nick, shout, now
    client=pymongo.MongoClient("mongodb://labmacambira:<EMAIL>:31948/aaserver")
    client.aaserver.shouts.insert({"time":now,"nick":nick,"shout":shout})
    return 'Hello World!'

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

{'fraction_non_alphanumeric': 0.1778875849289685, 'fraction_numerical': 0.009882643607164917, 'mean_word_length': 4.765124555160142, 'pattern_counts': {'":': 7, '<': 7, '<?xml version=': 0, '>': 7, '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': '6287599', 'n_tokens_mistral': 585, 'n_tokens_neox': 568, 'n_words': 108}