<commit_before>$(document).ready(function() {

  function updateProgressBar(pct) {
      $('#current-progress').animate({width: pct+'%'}, 400);
  }

  function updateUI() {
      $.get("/status/"+window.installID, function(resp) {
          console.log(resp);
          if (resp.status == 'waiting for ssh') {
              $('#status-line').text('Waiting for SSH…');
              updateProgressBar(15);
          } else if (resp.status == 'waiting for http') {
              $('#status-line').text('Waiting for HTTP…');
              updateProgressBar(35);
          } else if (resp.status == 'creating client token') {
              $('#status-line').text('Creating client token…');
              updateProgressBar(95);
          } else if (resp.status == 'done') {
              $('#status-line').text('Install complete');
              updateProgressBar(100);
              $('#open-dashboard').attr('href', 'http://' + resp.client_token + '@' + resp.ip_address + '/dashboard');
              $('#core-info').css('display', 'block');
          } else if (resp.status == 'failed') {
              $('status-line').text('Install failed');
              updateProgressBar(0);
          }

          if (resp.status != 'done' && resp.status != 'failed') {
              setTimeout(updateUI, 1000);
          }
      });
  }

  updateUI();
});<commit_msg>port 1999<commit_after>$(document).ready(function() {

  function updateProgressBar(pct) {
      $('#current-progress').animate({width: pct+'%'}, 400);
  }

  function updateUI() {
      $.get("/status/"+window.installID, function(resp) {
          console.log(resp);
          if (resp.status == 'waiting for ssh') {
              $('#status-line').text('Waiting for SSH…');
              updateProgressBar(15);
          } else if (resp.status == 'waiting for http') {
              $('#status-line').text('Waiting for HTTP…');
              updateProgressBar(35);
          } else if (resp.status == 'creating client token') {
              $('#status-line').text('Creating client token…');
              updateProgressBar(95);
          } else if (resp.status == 'done') {
              $('#status-line').text('Install complete');
              updateProgressBar(100);
              $('#open-dashboard').attr('href', 'http://' + resp.client_token + '@' + resp.ip_address + ':1999/dashboard');
              $('#core-info').css('display', 'block');
          } else if (resp.status == 'failed') {
              $('status-line').text('Install failed');
              updateProgressBar(0);
          }

          if (resp.status != 'done' && resp.status != 'failed') {
              setTimeout(updateUI, 1000);
          }
      });
  }

  updateUI();
});
{'fraction_non_alphanumeric': 0.19070453707119145, 'fraction_numerical': 0.01549243821468093, 'mean_word_length': 2.081818181818182, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2837145', 'n_tokens_mistral': 778, 'n_tokens_neox': 751, 'n_words': 139}