<commit_before>from flask import Flask
from flask import request

app = Flask(__name__)


@app.route("/")
def index():
    user_agent = request.headers.get('User-Agent')
    # return 'Hello World!'
    return '<p>Your browser is %s</p>' % user_agent


@app.route("/user/<name>")
def user(name):
    return 'Hello, %s!' % name


if __name__ == "__main__":
    app.run(debug=True)
<commit_msg>Flask-script 命令行 2c<commit_after>from flask import Flask
from flask import request
from flask_script import Manager

app = Flask(__name__)
manager = Manager(app)


@app.route("/")
def index():
    user_agent = request.headers.get('User-Agent')
    # return 'Hello World!'
    return '<p>Your browser is %s</p>' % user_agent


@app.route("/user/<name>")
def user(name):
    return 'Hello, %s!' % name


if __name__ == "__main__":
    # app.run(debug=True)
    manager.run()
{'fraction_non_alphanumeric': 0.15990730011587487, 'fraction_numerical': 0.0011587485515643105, 'mean_word_length': 3.994219653179191, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 9, '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': '2944229', 'n_tokens_mistral': 306, 'n_tokens_neox': 299, 'n_words': 79}