<commit_before><!--
 Copyright (c) 2019-2022 <NAME>, <NAME>.

 Licensed under the BSD 3-Clause License
 <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
 This file may not be copied, modified, or distributed except
 according to those terms.
-->

{% extends "../report.html" %}

{% block report_head %}
<script>
$(document).ready(function () {
  'use strict';

  var product_info = {% raw json_encode(settings) %};
  $('#bzProduct').on('change', function (event) {
    var product = $(this).find(':selected').val();
    $('#componentSelect').find('option').remove();
    for (var component of product_info[product]['components']) {
      $('#componentSelect').append($(`<option value=${component}>${component}</option>`));
    }
    $('#versionSelect').find('option').remove();
    for (var version of product_info[product]['versions']) {
      $('#versionSelect').append($(`<option value=${version}>${version}</option>`));
    }
  });
});
</script>
{% end report_head %}

<!-- tracker settings starts -->
{% block settings %}
<div class="input-group">
<select id="bzProduct" name="product" size="7" class="form-control">
  {% for name, product in settings.items() %}
    <option value="{{ name }}">{{ name }}</option>
  {% end %}
</select>
<select name="component" size="7" id="componentSelect" class="form-control"></select>
<select name="product_version" size="7" id="versionSelect" class="form-control"></select><commit_msg>Fix bugzilla component and version select generation<commit_after><!--
 Copyright (c) 2019-2022 <NAME>, <NAME>.

 Licensed under the BSD 3-Clause License
 <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
 This file may not be copied, modified, or distributed except
 according to those terms.
-->

{% extends "../report.html" %}

{% block report_head %}
<script>
$(document).ready(function () {
  'use strict';

  var product_info = {% raw json_encode(settings) %};
  $('#bzProduct').on('change', function (event) {
    var product = $(this).find(':selected').val();
    $('#componentSelect').find('option').remove();
    for (var component of product_info[product]['components']) {
      $('#componentSelect').append($(`<option value="${component}">${component}</option>`));
    }
    $('#versionSelect').find('option').remove();
    for (var version of product_info[product]['versions']) {
      $('#versionSelect').append($(`<option value="${version}">${version}</option>`));
    }
  });
});
</script>
{% end report_head %}

<!-- tracker settings starts -->
{% block settings %}
<div class="input-group">
<select id="bzProduct" name="product" size="7" class="form-control">
  {% for name, product in settings.items() %}
    <option value="{{ name }}">{{ name }}</option>
  {% end %}
</select>
<select name="component" size="7" id="componentSelect" class="form-control"></select>
<select name="product_version" size="7" id="versionSelect" class="form-control"></select>
{'fraction_non_alphanumeric': 0.21592073795695252, 'fraction_numerical': 0.008882815169115136, 'mean_word_length': 4.987730061349693, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, 'https://': 2, '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': '5560808', 'n_tokens_mistral': 886, 'n_tokens_neox': 840, 'n_words': 205}