<commit_before>from flask import Flask
app = Flask(__name__)

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

if __name__ == "__main__":
    app.run()<commit_msg>Server implements basic storage and retreival of files<commit_after>from flask import Flask
from flask import request
app = Flask(__name__)

stored_files = []

@app.route('/<int:id_num>', methods=['GET'])
def get_file(id_num):
    return stored_files[id_num]


@app.route('/', methods=['POST'])
def upload_file():
    data = request.args
    new_file = data['uploaded_file']
    stored_files.append(new_file)
    return "File stored"



if __name__ == "__main__":
    app.run()
{'fraction_non_alphanumeric': 0.1437403400309119, 'fraction_numerical': 0.0, 'mean_word_length': 4.684210526315789, 'pattern_counts': {'":': 2, '<': 4, '<?xml version=': 0, '>': 4, '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': '4682122', 'n_tokens_mistral': 223, 'n_tokens_neox': 219, 'n_words': 55}