<commit_before>var userStories=[];
var backends=["git","Xcronicler"];
var currentBackend="git";
var nrSuccess=0;
var nrPending=0;
var nrFail=0;
var nrNotRunned=0;

$( document ).ready(function() {
  $(backends).each(function(i,data){
    $("#backends").append('<option value='+i+'>'+data+'</option>');
  })
  $("#backends").change(function() {
    currentBackend=backends[$(this).val()];
  });

  loadUserStories();
  $(".runAllTests").click(function (arg) {
    alert("running all tests");
    $(userStories).each(function (i,story) {
      $(story.tests).each(function (j,test) {
        var millisecondsToWait = 100;
        var refreshInterval = setInterval(function() {
           if(nrPending==0){
              clearInterval(refreshInterval);
              reportIn(story.getUuid(),test.name,"pending");
              $.getScript("assets/userStories/"+test.runFile, function(){
                });<commit_msg>updeted reset when changing site<commit_after>var userStories=[];
var backends=["git","XChronicler"];
var currentBackend="git";
var nrSuccess=0;
var nrPending=0;
var nrFail=0;
var nrNotRunned=0;

$( document ).ready(function() {
  $(backends).each(function(i,data){
    $("#backends").append('<option value='+i+'>'+data+'</option>');
  })
  $("#backends").change(function() {
    $(userStories).each(function (i,story) {
      $(story.tests).each(function (j,test) {
        test.status=null;
      });
    });
    updateStatus();
    currentBackend=backends[$(this).val()];
  });

  loadUserStories();
  $(".runAllTests").click(function (arg) {
    alert("running all tests");
    $(userStories).each(function (i,story) {
      $(story.tests).each(function (j,test) {
        var millisecondsToWait = 100;
        var refreshInterval = setInterval(function() {
           if(nrPending==0){
              clearInterval(refreshInterval);
              reportIn(story.getUuid(),test.name,"pending");
              $.getScript("assets/userStories/"+test.runFile, function(){
                });
{'fraction_non_alphanumeric': 0.19182859990034878, 'fraction_numerical': 0.007972097658196313, 'mean_word_length': 3.6374133949191685, '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': '2801300', 'n_tokens_mistral': 632, 'n_tokens_neox': 633, 'n_words': 94}