<commit_before><!DOCTYPE html>
<html>
  <head>
    {% include "widget/_js_onsite_dependencies.html" %}
    <script>
      goog.require('goog.userAgent.product');
      goog.require('goog.testing.MultiTestRunner');
    </script>
  </head>
  <body>
    <script>
      var _allTests = [
          "captionmanager_test",
          "editablecaptionset_test",
          "mirosubs_test",
          "syncpanel_test",
          "timelinesubtitleset_test",
          "videourlparse_test",
          "startdialogmodel_test"
      ];
    </script>
    <script> 
      if (goog.userAgent.product.CHROME &&
      window.location.toString().indexOf('file:') == 0) {
      document.write(
      '<div class="warning">' +
        'WARNING: Due to Chrome\'s security restrictions ' +
        'this test will not be able to load files off your local disk ' +
        'unless you start Chrome with:<br>' +
        '<code>--allow-file-access-from-files</code></div><br>');
      }
    </script> 
    <h1>Universal Subtitles - All JsUnit Tests</h1> 
    <div id="runner"></div>
    <form id="footer" onsubmit="return false"> 
      Settings:<br> 
      <input type="checkbox" name="hidepasses" id="hidepasses" checked> 
      <label for="hidepasses">Hide passes</label><br> 
      <input type="checkbox" name="parallel" id="parallel"> 
      <label for="parallel">Run in parallel</label> 
      <small>(timing stats not available if enabled)</small><br> 
      <input type="text" name="filter" id="filter" value=""> 
      <label for="filter">Run only tests for path</label> 
    </form> 
    <script> 
      var hidePassesInput = document.getElementById('hidepasses');
      var parallelInput = document.getElementById('parallel');
      var filterInput = document.getElementById('filter');
      
      function setFilterFunction() {
          var matchValue = filterInput.value || '';
          testRunner.setFilterFunction(function(testPath) {
              return testPath.indexOf(matchValue) > -1;
          });
      }
 
      // Create a test runner and render it.
      var testRunner = new goog.testing.MultiTestRunner()
          .setName(document.title)
          .setBasePath('../')
          .setPoolSize(parallelInput.checked ? 8 : 1)
          .setStatsBucketSizes(5, 500)
          .setHidePasses(hidePassesInput.checked)
          //.setVerbosePasses(true)
          .addTests(_allTests);
      testRunner.render(document.getElementById('runner'));
 
      goog.events.listen(hidePassesInput, 'click', function(e) {
          testRunner.setHidePasses(e.target.checked);
      });
 
      goog.events.listen(parallelInput, 'click', function(e) {
          testRunner.setPoolSize(e.target.checked ? 8 : 1);
      });
 
      goog.events.listen(filterInput, 'keyup', setFilterFunction);
      setFilterFunction();
</script> 
  </body>
</html><commit_msg>Fixed path in js all tests page<commit_after><!DOCTYPE html>
<html>
  <head>
    {% include "widget/_js_onsite_dependencies.html" %}
    <script>
      goog.require('goog.userAgent.product');
      goog.require('goog.testing.MultiTestRunner');
    </script>
  </head>
  <body>
    <script>
      var _allTests = [
          "captionmanager_test",
          "editablecaptionset_test",
          "mirosubs_test",
          "syncpanel_test",
          "timelinesubtitleset_test",
          "videourlparse_test",
          "startdialogmodel_test"
      ];
    </script>
    <script> 
      if (goog.userAgent.product.CHROME &&
      window.location.toString().indexOf('file:') == 0) {
      document.write(
      '<div class="warning">' +
        'WARNING: Due to Chrome\'s security restrictions ' +
        'this test will not be able to load files off your local disk ' +
        'unless you start Chrome with:<br>' +
        '<code>--allow-file-access-from-files</code></div><br>');
      }
    </script> 
    <h1>Universal Subtitles - All JsUnit Tests</h1> 
    <div id="runner"></div>
    <form id="footer" onsubmit="return false"> 
      Settings:<br> 
      <input type="checkbox" name="hidepasses" id="hidepasses" checked> 
      <label for="hidepasses">Hide passes</label><br> 
      <input type="checkbox" name="parallel" id="parallel"> 
      <label for="parallel">Run in parallel</label> 
      <small>(timing stats not available if enabled)</small><br> 
      <input type="text" name="filter" id="filter" value=""> 
      <label for="filter">Run only tests for path</label> 
    </form> 
    <script> 
      var hidePassesInput = document.getElementById('hidepasses');
      var parallelInput = document.getElementById('parallel');
      var filterInput = document.getElementById('filter');
      
      function setFilterFunction() {
          var matchValue = filterInput.value || '';
          testRunner.setFilterFunction(function(testPath) {
              return testPath.indexOf(matchValue) > -1;
          });
      }
 
      // Create a test runner and render it.
      var testRunner = new goog.testing.MultiTestRunner()
          .setName(document.title)
          .setBasePath('/jstest/')
          .setPoolSize(parallelInput.checked ? 8 : 1)
          .setStatsBucketSizes(5, 500)
          .setHidePasses(hidePassesInput.checked)
          //.setVerbosePasses(true)
          .addTests(_allTests);
      testRunner.render(document.getElementById('runner'));
 
      goog.events.listen(hidePassesInput, 'click', function(e) {
          testRunner.setHidePasses(e.target.checked);
      });
 
      goog.events.listen(parallelInput, 'click', function(e) {
          testRunner.setPoolSize(e.target.checked ? 8 : 1);
      });
 
      goog.events.listen(filterInput, 'keyup', setFilterFunction);
      setFilterFunction();
</script> 
  </body>
</html>
{'fraction_non_alphanumeric': 0.14115794997376246, 'fraction_numerical': 0.004198005947175092, 'mean_word_length': 2.6281725888324874, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 87, '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': '5088416', 'n_tokens_mistral': 1745, 'n_tokens_neox': 1664, 'n_words': 327}