<commit_before>from flask import render_template, flash, redirect
from app import app
from app import db
from app.model import CVE, CVEGroup, CVEGroupEntry


@app.route('/CVE-<cve>')
def cve(cve):
    cve = 'CVE-' + cve
    cve_model = CVE.query.get(cve)
    if not cve_model:
        return '404'
    groups = (db.session.query(CVEGroupEntry, CVEGroup).filter_by(cve=cve_model).join(CVEGroup)).all()
    groups = sorted(groups, key=lambda item: item[1].created, reverse=True)
    groups = sorted(groups, key=lambda item: item[1].status)

    entry = {
        'cve': cve_model.id,
        'description': cve_model.description,
        'severity': cve_model.severity,
        'remote': cve_model.remote,
        'notes': cve_model.notes,<commit_msg>cve: adding alternative display route /issue/CVE-<cve><commit_after>from flask import render_template, flash, redirect
from app import app
from app import db
from app.model import CVE, CVEGroup, CVEGroupEntry


@app.route('/issue/CVE-<cve>')
@app.route('/CVE-<cve>')
def cve(cve):
    cve = 'CVE-' + cve
    cve_model = CVE.query.get(cve)
    if not cve_model:
        return '404'
    groups = (db.session.query(CVEGroupEntry, CVEGroup).filter_by(cve=cve_model).join(CVEGroup)).all()
    groups = sorted(groups, key=lambda item: item[1].created, reverse=True)
    groups = sorted(groups, key=lambda item: item[1].status)

    entry = {
        'cve': cve_model.id,
        'description': cve_model.description,
        'severity': cve_model.severity,
        'remote': cve_model.remote,
        'notes': cve_model.notes,
{'fraction_non_alphanumeric': 0.13694267515923567, 'fraction_numerical': 0.006369426751592357, 'mean_word_length': 3.6205882352941177, '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': '5237389', 'n_tokens_mistral': 572, 'n_tokens_neox': 559, 'n_words': 121}