<commit_before><!doctype html>
<html lang="en">
<head>
  <title>Vulnerabilities for scanned systems</title>
  <!-- metadata -->
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <meta name="description" content="Vulnerabilities for scanned system"/>
  <meta name="author" content="NorthernSec"/>

  <!-- css -->
  <link href="/static/css/bootstrap.min.css" rel="stylesheet" />
  <link href="/static/css/style.css" rel="stylesheet" />
  <link href="/static/css/flaticon.css" rel="stylesheet" />

  <!-- favicon -->
  <link rel="shortcut icon" href="/static/img/favicon.ico" />

  <!-- javascript -->
  <script type="text/javascript" src="/static/js/jquery-1.11.2.min.js"></script>
  <script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
  <script type="text/javascript" src="/static/js/custom/scripts.js"></script>
</head>
<body>
  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-12">
        <!-- Nav -->
        {% include 'menu.html' %}
        <!-- End Nav -->
        <!-- Content -->
        <div>
          {% if systems|length == 0 %}
            <div class="well">
              No hosts were scanned.
            </div>
          {% else %}
            {% for sys in systems %}
              <div class='well'>
                <table class="table table-hover table-striped">
                  <tr>  <td>IP</td>     <td>{{sys['ip']}}</td></tr>
                  <tr>  <td>MAC</td>    <td>{{sys['mac']}}</td></tr>
                  <tr>  <td>Status</td> <td>{{sys['status']}}</td></tr>
                  <tr>  <td>Possible CPEs</td>
                  <td>
                    {% if sys['cpes']|length == 0 %}
                      System not fingerprinted
                    {% else %}
                      {%for cpe in sys['cpes'] %}
                        <div>
                          {{ cpe['cpe']|toHuman }}
                          {% if cpe['cves']|length!=0 %}
                            <span data-toggle="collapse" data-target="#c{{ loop.index }}">
                              <span class="glyphicon glyphicon-exclamation-sign"> </span>
                            </span>
                          {% endif %}
                          <div id="c{{ loop.index }}" class="collapse">
                            {% for v in cpe['cves'] %}
                              <a href="/cve/{{v['id']}}">{{v['id']}}</a>
                              {% if 'impact' in v %} - 
                                <span title="Impact on: Confidentiality: {{v['impact']['confidentiality']}} | Integritty:{{v['impact']['integrity']}} | Availability:{{v['impact']['availability']}}">
                                  <span class="{{v['impact']['confidentiality']|impact}}">C</span>
                                  <span class="{{v['impact']['integrity']|impact}}">I</span>
                                  <span class="{{v['impact']['availability']|impact}}">A</span>
                                </span>
                              {% endif %}
                              {% if 'access' in v %}
                                {% if v['access']['vector']|lower == 'local'%}
                                  <span class="flaticon-workplace" title="Local"></span>
                                {% elif v['access']['vector']|lower == 'network'%}
                                  <span class="flaticon-global5" title="Network"></span>
                                {% elif v['access']['vector']|lower == 'ajecent_network'%}
                                  <span class="flaticon-plug10" title="Ajecent (local) Network"></span>
                                {% endif %}
                                {% if v['access']['complexity']|lower == 'low'%}
                                  <span class="flaticon-skull39 bad" title="Low Complexity"></span>
                                {% elif v['access']['complexity']|lower == 'medium'%}
                                  <span class="flaticon-shield35 medium" title="Medium Complexity"></span>
                                {% elif v['access']['complexity']|lower == 'high'%}
                                  <span class="flaticon-shield54 good" title="High Complexity"></span>
                                {% endif %}
                              {% endif %}
                              <br />
                            {% endfor %}
                          </div>
                        </div>
                      {% endfor %}
                    {% endif %}
                  </td>
                  {% if sys['status']=='up'%}
                    <tr><td>Vendor</td> <td>{{sys['vendor']}}</td></tr>
                    <tr><td>Hostnames</td> 
                      <td>
                        <ul>
                          {% for h in sys['hostnames'] %}
                            <li>{{h}}</li>
                          {% endfor %}
                        </ul>
                      </td>
                    </tr>
                    <tr><td>Distance</td>  <td>{{sys['distance']}}</td></tr>
                    <tr><td>Services</td>
                      <td>
                        {% if sys['services']|length == 0 %}
                          No services found for this host
                        {% else %}
                          <table class="table table-hover table-striped services">
                          <thead>
                            <tr class="warning"><td>Service</td><td>Product</td>
                              <td>Port/Protocol</td><td>Status</td><td></td></tr>
                          </thead>
                            {% for s in sys['services'] %}
                              <tr>
                                <td>{{s['name']}}</td>
                                <td>
                                  <span rel="tooltip" title="{{s['banner']}}">
                                    {{s['banner']|product}}</span>
                                </td>
                                <td>port {{s['port']}}/{{s['protocol']}}</td>
                                <td>{{s['state']}}</td>
                                <td class="nonfluid">
                                  {% if s['cves']|length!=0 %}
                                    <span data-toggle="collapse" data-target="#{{ loop.index }}">
                                      <span class="glyphicon glyphicon-exclamation-sign"> </span>
                                    </span>
                                  {% endif %}
                                </td>
                              </tr>
                              <tr id="{{ loop.index }}" class="collapse">
                                <td colspan="5">
                                  {% for v in s['cves'] %}
                                    <a href="/cve/{{v['id']}}">{{v['id']}}</a>
                                    {% if 'impact' in v %} - 
                                      <span title="Impact on: Confidentiality: {{v['impact']['confidentiality']}} | Integritty:{{v['impact']['integrity']}} | Availability:{{v['impact']['availability']}}">
                                        <span class="{{v['impact']['confidentiality']|impact}}">C</span>
                                        <span class="{{v['impact']['integrity']|impact}}">I</span>
                                        <span class="{{v['impact']['availability']|impact}}">A</span>
                                      </span>
                                    {% endif %}
                                    {% if 'access' in v %}
                                      {% if v['access']['vector']|lower == 'local'%}
                                        <span class="flaticon-workplace" title="Local"></span>
                                      {% elif v['access']['vector']|lower == 'network'%}
                                        <span class="flaticon-plug10" title="Network"></span>
                                      {% elif v['access']['vector']|lower == 'ajecent_network'%}
                                        <span class="flaticon-global5" title="Ajecent Network"></span>
                                      {% endif %}

                                      {% if v['access']['complexity']|lower == 'low'%}
                                        <span class="flaticon-skull39 bad" title="Low Complexity"></span>
                                      {% elif v['access']['complexity']|lower == 'medium'%}
                                        <span class="flaticon-shield35 medium" title="Medium Complexity"></span>
                                      {% elif v['access']['complexity']|lower == 'high'%}
                                        <span class="flaticon-shield54 good" title="High Complexity"></span>
                                      {% endif %}
                                    {% endif %}
                                    <br />
                                  {% endfor %}
                                </td>
                              </tr>
                            {% endfor %}
                          </table>
                        {% endif %}
                      </td>
                    </tr>
                  {% endif %}
                </table>
              </div>
            {% endfor %}
          {% endif %}
        <!-- End Content -->
        </div>
      </div>
    </div>
  </div><commit_msg>fix missing changes<commit_after><!doctype html>
<html lang="en">
<head>
  <title>Vulnerabilities for scanned systems</title>
  <!-- metadata -->
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <meta name="description" content="Vulnerabilities for scanned system"/>
  <meta name="author" content="NorthernSec"/>

  <!-- css -->
  <link href="/static/css/bootstrap.min.css" rel="stylesheet" />
  <link href="/static/css/style.css" rel="stylesheet" />
  <link href="/static/css/flaticon.css" rel="stylesheet" />

  <!-- favicon -->
  <link rel="shortcut icon" href="/static/img/favicon.ico" />

  <!-- javascript -->
  <script type="text/javascript" src="/static/js/jquery-1.11.2.min.js"></script>
  <script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
  <script type="text/javascript" src="/static/js/custom/scripts.js"></script>
</head>
<body>
  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-12">
        <!-- Nav -->
        {% include 'menu.html' %}
        <!-- End Nav -->
        <!-- Content -->
        <div>
          {% if systems|length == 0 %}
            <div class="well">
              No hosts were scanned.
            </div>
          {% else %}
            {% for sys in systems %}
              <div class='well'>
                <table class="table table-hover table-striped">
                  <tr>  <td>IP</td>     <td>{{sys['ip']}}</td></tr>
                  <tr>  <td>MAC</td>    <td>{{sys['mac']}}</td></tr>
                  <tr>  <td>Status</td> <td>{{sys['status']}}</td></tr>
                  <tr>  <td>Possible CPEs</td>
                  <td>
                    {% if sys['cpes']|length == 0 %}
                      System not fingerprinted
                    {% else %}
                      {%for cpe in sys['cpes'] %}
                        <div>
                          {{ cpe['cpe']|toHuman }}
                          {% if cpe['cves']|length!=0 %}
                            <span data-toggle="collapse" data-target="#c{{ loop.index }}">
                              <span class="glyphicon glyphicon-exclamation-sign"> </span>
                            </span>
                          {% endif %}
                          <div id="c{{ loop.index }}" class="collapse">
                            {% for v in cpe['cves'] %}
                              <a href="/cve/{{v['id']}}">{{v['id']}}</a>
                              {% if 'impact' in v %} - 
                                <span title="Impact on: Confidentiality: {{v['impact']['confidentiality']}} | Integritty:{{v['impact']['integrity']}} | Availability:{{v['impact']['availability']}}">
                                  <span class="{{v['impact']['confidentiality']|impact}}">C</span>
                                  <span class="{{v['impact']['integrity']|impact}}">I</span>
                                  <span class="{{v['impact']['availability']|impact}}">A</span>
                                </span>
                              {% endif %}
                              {% if 'access' in v %}
                                {% if v['access']['vector']|lower == 'local'%}
                                  <span class="flaticon-workplace" title="Local"></span>
                                {% elif v['access']['vector']|lower == 'network'%}
                                  <span class="flaticon-global5" title="Network"></span>
                                {% elif v['access']['vector']|lower == 'ajecent_network'%}
                                  <span class="flaticon-plug10" title="Ajecent (local) Network"></span>
                                {% endif %}
                                {% if v['access']['complexity']|lower == 'low'%}
                                  <span class="flaticon-skull39 bad" title="Low Complexity"></span>
                                {% elif v['access']['complexity']|lower == 'medium'%}
                                  <span class="flaticon-shield35 medium" title="Medium Complexity"></span>
                                {% elif v['access']['complexity']|lower == 'high'%}
                                  <span class="flaticon-shield54 good" title="High Complexity"></span>
                                {% endif %}
                              {% endif %}
                              <br />
                            {% endfor %}
                          </div>
                        </div>
                      {% endfor %}
                    {% endif %}
                  </td>
                  {% if sys['status']=='up'%}
                    <tr><td>Vendor</td> <td>{{sys['vendor']}}</td></tr>
                    <tr><td>Hostnames</td> 
                      <td>
                        <ul>
                          {% for h in sys['hostnames'] %}
                            <li>{{h}}</li>
                          {% endfor %}
                        </ul>
                      </td>
                    </tr>
                    <tr><td>Distance</td>  <td>{{sys['distance']}}</td></tr>
                    <tr><td>Services</td>
                      <td>
                        {% if sys['services']|length == 0 %}
                          No services found for this host
                        {% else %}
                          <table class="table table-hover table-striped services">
                          <thead>
                            <tr class="warning"><td>Service</td><td>Product</td>
                              <td>Port/Protocol</td><td>Status</td><td></td></tr>
                          </thead>
                            {% for s in sys['services'] %}
                              <tr>
                                <td>{{s['name']}}</td>
                                <td>
                                  <span rel="tooltip" title="{{s['banner']}}">
                                    {{s['banner']|product}}</span>
                                </td>
                                <td>port {{s['port']}}/{{s['protocol']}}</td>
                                <td>{{s['state']}}</td>
                                <td class="nonfluid">
                                  {% if s['cves']|length!=0 %}
                                    <span data-toggle="collapse" data-target="#{{ loop.index }}">
                                      <span class="glyphicon glyphicon-exclamation-sign"> </span>
                                    </span>
                                  {% endif %}
                                </td>
                              </tr>
                              <tr id="{{ loop.index }}" class="collapse">
                                <td colspan="5">
                                  {% for v in s['cves'] %}
                                    <a href="/cve/{{v['id']}}">{{v['id']}}</a>
                                    {% if 'impact' in v %} - 
                                      <span title="Impact on: Confidentiality: {{v['impact']['confidentiality']}} | Integritty:{{v['impact']['integrity']}} | Availability:{{v['impact']['availability']}}">
                                        <span class="{{v['impact']['confidentiality']|impact}}">C</span>
                                        <span class="{{v['impact']['integrity']|impact}}">I</span>
                                        <span class="{{v['impact']['availability']|impact}}">A</span>
                                      </span>
                                    {% endif %}
                                    {% if 'access' in v %}
                                      {% if v['access']['vector']|lower == 'local'%}
                                        <span class="flaticon-workplace" title="Local"></span>
                                      {% elif v['access']['vector']|lower == 'network'%}
                                        <span class="flaticon-global5" title="Network"></span>
                                      {% elif v['access']['vector']|lower == 'ajecent_network'%}
                                        <span class="flaticon-plug10" title="Ajecent (local) Network"></span>
                                      {% endif %}

                                      {% if v['access']['complexity']|lower == 'low'%}
                                        <span class="flaticon-skull39 bad" title="Low Complexity"></span>
                                      {% elif v['access']['complexity']|lower == 'medium'%}
                                        <span class="flaticon-shield35 medium" title="Medium Complexity"></span>
                                      {% elif v['access']['complexity']|lower == 'high'%}
                                        <span class="flaticon-shield54 good" title="High Complexity"></span>
                                      {% endif %}
                                    {% endif %}
                                    <br />
                                  {% endfor %}
                                </td>
                              </tr>
                            {% endfor %}
                          </table>
                        {% endif %}
                      </td>
                    </tr>
                  {% endif %}
                </table>
              </div>
            {% endfor %}
          {% endif %}
        <!-- End Content -->
        </div>
      </div>
    </div>
  </div>
{'fraction_non_alphanumeric': 0.16682524579765304, 'fraction_numerical': 0.0034887408816999684, 'mean_word_length': 0.9948334036271615, 'pattern_counts': {'":': 0, '<': 375, '<?xml version=': 0, '>': 375, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 140, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5741006', 'n_tokens_mistral': 4965, 'n_tokens_neox': 4390, 'n_words': 768}