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

@app.route("/")
def hello():
    return str(request.remote_addr)

@app.route("/json", methods=["GET"])
def get_my_ip():
    print (request.headers.getlist("X-Forwarded-For"))
    return jsonify({'ip': request.remote_addr}), 200

if __name__ == "__main__":
    app.run(port=25500)<commit_msg>x-forwarded-for is added to return<commit_after>from flask import Flask, request, jsonify
app = Flask(__name__)

@app.route("/")
def hello():
    return str(request.headers.getlist("X-Forwarded-For"))

@app.route("/json", methods=["GET"])
def get_my_ip():
    
    return jsonify({'ip': request.headers.getlist("X-Forwarded-For")}), 200

if __name__ == "__main__":
    app.run(port=25500)
{'fraction_non_alphanumeric': 0.17918313570487485, 'fraction_numerical': 0.021080368906455864, 'mean_word_length': 5.129032258064516, 'pattern_counts': {'":': 2, '<': 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': '2784819', 'n_tokens_mistral': 281, 'n_tokens_neox': 265, 'n_words': 55}