<commit_before>import os, sys
from flask import Flask
from flask import request
app = Flask(__name__)

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

@app.route('/upload', methods=['GET', 'POST'])
def upload_file():
    if request.method == 'POST':
        f = request.files['file']
        f.save('./uploads/'+f.filename)
    return '',201
if __name__ == "__main__":
    app.run(host="0.0.0.0", debug=True)

<<<<<<< HEAD

@app.route("/listfile") def files():
        path = "./uploads"
        dircs = os.listdir(path)
=======
@app.route("/listfile")
def files():
	path = "./uploads"
	dircs = os.listdir(path)
>>>>>>> 21137a8addbc6b44dc549facbd96a04e5d4f4fe6

	for each_file in dircs:
		files = str(files + each_file + " ")
	return files
<<<<<<< HEAD
=======

>>>>>>> 21137a8addbc6b44dc549facbd96a04e5d4f4fe6<commit_msg>updating 3<commit_after>import os, sys
from flask import Flask
from flask import request
app = Flask(__name__)

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

@app.route('/upload', methods=['GET', 'POST'])
def upload_file():
    if request.method == 'POST':
        f = request.files['file']
        f.save('./uploads/'+f.filename)
    return '',201
if __name__ == "__main__":
    app.run(host="0.0.0.0", debug=True)


@app.route("/listfile") def files():
        path = "./uploads"
        dircs = os.listdir(path)


@app.route("/listfile")
def files():
	path = "./uploads"
	dircs = os.listdir(path)


	for each_file in dircs:
		files = str(files + each_file + " ")
	return files
{'fraction_non_alphanumeric': 0.1935483870967742, 'fraction_numerical': 0.03620803159973667, 'mean_word_length': 3.6341463414634148, 'pattern_counts': {'":': 2, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3815888', 'n_tokens_mistral': 588, 'n_tokens_neox': 549, 'n_words': 124}