<commit_before>from flask import render_template

from app.h5 import h5


@h5.route('/preview', methods=['GET'])
def preview():
    return render_template('h5/preview.html')<commit_msg>feat: fix bug<commit_after>from flask import render_template

from app.h5 import h5


@h5.route('/preview2/<stock_or_code>', methods=['GET'])
@h5.route('/preview/<stock_or_code>', methods=['GET'])
def preview(stock_or_code):
    print(stock_or_code)
    return render_template('h5/preview.html')
{'fraction_non_alphanumeric': 0.15416666666666667, 'fraction_numerical': 0.020833333333333332, 'mean_word_length': 6.515625, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7519846', 'n_tokens_mistral': 167, 'n_tokens_neox': 164, 'n_words': 32}