<commit_before>from flask import Flask, jsonify
import rps_game

app = Flask(__name__)


@app.route("/move/<player>/<computer>")
def get_move(player, computer):
    rg = rps_game()
    return jsonify(move=rg.set_history(player, computer))<commit_msg>Error assertion and bug fix<commit_after>from flask import Flask, jsonify
import rps_game

app = Flask(__name__)


@app.route("/move/<player>/<computer>/")
def get_move(player, computer):
    rg = rps_game.RPSGame()
    assert len(player.strip()) == len(computer.strip())
    return jsonify(move=rg.set_history(player.strip(), computer.strip()))


if __name__ == '__main__':
    app.run(debug=True)
{'fraction_non_alphanumeric': 0.14969135802469136, 'fraction_numerical': 0.0, 'mean_word_length': 5.425742574257426, 'pattern_counts': {'":': 0, '<': 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': '5581468', 'n_tokens_mistral': 229, 'n_tokens_neox': 218, 'n_words': 46}