<commit_before><!DOCTYPE html>
<!--[if IE 8]><html class="ie ie8"> <![endif]-->
<!--[if IE 9]><html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!-->
<html> <!--<![endif]-->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Cobra is a code static scan system">
    <meta name="author" content="Feei <<EMAIL>>">
    <title>项目({{ data.project_name | upper }})代码安全审计报告 - {{ data.id }}</title>

    <!-- Favicon-->
    <link rel="shortcut icon" href="{{ url_for('static', filename='ico/favicon.ico') }}" type="image/x-icon">

    <!-- CSS -->
    <link href="{{ url_for('static', filename='css/base.css') }}" rel="stylesheet">
    <link href="{{ url_for('static', filename='css/prism.css') }}" rel="stylesheet"/>
    <link href="{{ url_for('static', filename='css/jquery.modal.min.css') }}" rel="stylesheet"/>
    <style>
        .invoice-title h2, .invoice-title h3 {
            display: inline-block;
        }

        .table > tbody > tr > .no-line {
            border-top: none;
        }

        .table > thead > tr > .no-line {
            border-bottom: none;
        }

        .table > tbody > tr > .thick-line {
            border-top: 2px solid;
        }

        .content {
            text-indent: 30px;
            display: inline-block;
        }

        .sum_number {
            display: inline;
            font-size: 20px;
            color: #F00;
            font-weight: bold;
        }

        pre {
            max-width: 750px;
        }

        #ext_distributing {
            height: 500px;
            margin-bottom: 30px;
        }
    </style>

    <!--[if lt IE 9]>
      <script src="js/html5shiv.min.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->

</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-xs-12">
            <div class="invoice-title">
                <h2>项目({{ data.project_name | upper }})代码安全审计报告</h2>
                <h3 class="pull-right">Cobra报告编号 # {{ data.id }}</h3>
            </div>
            <hr>
            <div class="row">
                <div class="col-xs-6">
                    <address>
                        <h4>项目信息:</h4>
                        <span class="content"><strong>项目名称: </strong>{{ data.project_name }} (@{{ data.author }})</span><br>
                        <span class="content"><strong>项目域名: </strong>{{ data.project_url|default('Unkown URL', True) }}</span><br>
                        <span class="content"><strong>项目框架: </strong>{{ data.project_framework|default('Unkown Framework', True) }}</span><br>
                        <span class="content"><strong>项目仓库: </strong>{{ data.project_repository }}</span>
                    </address>
                </div>
                <div class="col-xs-6">
                    <address>
                        <h4>扫描信息:</h4>
                        <span class="content"><strong>报告时间: </strong>{{ data.task_created_at }}</span><br>
                        <span class="content"><strong>扫描时间: </strong>{{ data.time_start }} - {{ data.time_end }} ({{ data.time_consume }})</span><br/>
                        <span class="content"><strong>文件数(个): </strong>{{ data.files }}</span><br/>
                        <span class="content"><strong>代码数(行): </strong>{{ data.code_number }}</span><br/>
                    </address>
                </div>
            </div>
            <ul class="nav nav-tabs">
                <li class="active"><a data-id="vul_d" data-toggle="tab">扫描结果</a></li>
                <li><a data-id="vul_l" data-toggle="tab">漏洞列表</a></li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="vul_d">
                    <div class="row">
                        <div class="col-md-8 column">
                            <h4>漏洞分布统计</h4>
                            <div id="vul_distributing" style="height:400px;">
                                {% if data.vul_count == 0 %}
                                    <h3 style="text-align: center;line-height: 400px;font-weight: bold;color: red;">赞, 未检测到漏洞 :)</h3>
                                {% endif %}
                            </div>
                            {#                            <h4>后缀分布统计</h4>#}
                            {#                            <div id="ext_distributing">#}
                            {##}
                            {#                            </div>#}
                        </div>
                        <div class="col-xs-4">
                            <address>
                                <h4>扫描统计</h4>
                                <table class="table table-striped table-bordered table-condensed">
                                    <thead>
                                    <tr>
                                        <th>#</th>
                                        <th>漏洞危害</th>
                                        <th>数量</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>1</td>
                                        <td>高危</td>
                                        <td>{{ data.amount.h }}</td><commit_msg>improve report view<commit_after><!DOCTYPE html>
<!--[if IE 8]><html class="ie ie8"> <![endif]-->
<!--[if IE 9]><html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!-->
<html> <!--<![endif]-->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Cobra is a code static scan system">
    <meta name="author" content="Feei <<EMAIL>>">
    <title>项目({{ data.project_name | upper }})代码安全审计报告 - {{ data.id }}</title>

    <!-- Favicon-->
    <link rel="shortcut icon" href="{{ url_for('static', filename='ico/favicon.ico') }}" type="image/x-icon">

    <!-- CSS -->
    <link href="{{ url_for('static', filename='css/base.css') }}" rel="stylesheet">
    <link href="{{ url_for('static', filename='css/prism.css') }}" rel="stylesheet"/>
    <link href="{{ url_for('static', filename='css/jquery.modal.min.css') }}" rel="stylesheet"/>
    <style>
        .invoice-title h2, .invoice-title h3 {
            display: inline-block;
        }

        .table > tbody > tr > .no-line {
            border-top: none;
        }

        .table > thead > tr > .no-line {
            border-bottom: none;
        }

        .table > tbody > tr > .thick-line {
            border-top: 2px solid;
        }

        .content {
            text-indent: 30px;
            display: inline-block;
        }

        .sum_number {
            display: inline;
            font-size: 20px;
            color: #F00;
            font-weight: bold;
        }

        pre {
            max-width: 750px;
        }

        #ext_distributing {
            height: 500px;
            margin-bottom: 30px;
        }
    </style>

    <!--[if lt IE 9]>
      <script src="js/html5shiv.min.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->

</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-xs-12">
            <div class="invoice-title">
                <h2>项目({{ data.project_name | upper }})代码安全审计报告</h2>
                <h3 class="pull-right">Cobra报告编号 # {{ data.id }}</h3>
            </div>
            <hr>
            <div class="row">
                <div class="col-xs-6">
                    <address>
                        <h4>项目信息:</h4>
                        <span class="content"><strong>项目名称: </strong>{{ data.project_name }} (@{{ data.author }})</span><br>
                        <span class="content"><strong>项目域名: </strong>{{ data.project_url|default('Unkown URL', True) }}</span><br>
                        <span class="content"><strong>项目框架: </strong>{{ data.project_framework|default('Unkown Framework', True) }}</span><br>
                        <span class="content"><strong>项目仓库: </strong>{{ data.project_repository }}</span>
                    </address>
                </div>
                <div class="col-xs-6">
                    <address>
                        <h4>扫描信息:</h4>
                        <span class="content"><strong>报告时间: </strong>{{ data.task_created_at }}</span><br>
                        <span class="content"><strong>扫描时间: </strong>{{ data.time_start }} - {{ data.time_end }} ({{ data.time_consume }})</span><br/>
                        <span class="content"><strong>文件数(个): </strong>{{ data.files }}</span><br/>
                        <span class="content"><strong>代码数(行): </strong>{{ data.code_number }}</span><br/>
                    </address>
                </div>
            </div>
            <ul class="nav nav-tabs">
                <li class="active"><a data-id="vul_d" data-toggle="tab">扫描结果</a></li>
                <li><a data-id="vul_l" data-toggle="tab">漏洞列表</a></li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="vul_d">
                    <div class="row">
                        <div class="col-md-9 column">
                            <h4>漏洞分布统计</h4>
                            <div id="vul_distributing" style="height:400px;">
                                {% if data.vul_count == 0 %}
                                    <h3 style="text-align: center;line-height: 400px;font-weight: bold;color: red;">赞, 未检测到漏洞 :)</h3>
                                {% endif %}
                            </div>
                            {#                            <h4>后缀分布统计</h4>#}
                            {#                            <div id="ext_distributing">#}
                            {##}
                            {#                            </div>#}
                        </div>
                        <div class="col-xs-3">
                            <address>
                                <h4>扫描统计</h4>
                                <table class="table table-striped table-bordered table-condensed">
                                    <thead>
                                    <tr>
                                        <th>#</th>
                                        <th>漏洞危害</th>
                                        <th>数量</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>1</td>
                                        <td>高危</td>
                                        <td>{{ data.amount.h }}</td>
{'fraction_non_alphanumeric': 0.16905549430356487, 'fraction_numerical': 0.010290334435869165, 'mean_word_length': 1.2012133468149646, 'pattern_counts': {'":': 0, '<': 301, '<?xml version=': 0, '>': 317, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 42, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '740086', 'n_tokens_mistral': 3338, 'n_tokens_neox': 3227, 'n_words': 561}