<commit_before>I.wait_for_build = (function ($) {
  var TIMER_SELECTOR = "[data-increment-every-second]";
  var RELOAD_TIMEOUT = 4000;
  var RELOAD_URL = null;

  function initBuildChecker(check_build_url, reload_url) {
    RELOAD_URL = reload_url;
    checkBuild(check_build_url);
    enqueueCheckBuild(check_build_url);
  }

  function checkBuild(check_build_url) {
    jQuery.ajax(check_build_url, {dataType: 'json', success: function(build) {
      if( !window.builds ) window.builds = {};
      if( !window.builds[build.id] ) {
        window.builds[build.id] = build;
      } else {
        var before = window.builds[build.id];
        if( before.status != build.status ) reload();
        window.builds[build.id] = build;
      }
      enqueueCheckBuild(check_build_url);
    }});
  }

  function enqueueCheckBuild(check_build_url) {
    setTimeout(function() {
      checkBuild(check_build_url);
    }, RELOAD_TIMEOUT);
  }

  function updateBuildTimers() {
    jQuery(TIMER_SELECTOR).each(function(index, ele) {
      var span = $(ele);
      var seconds = parseInt( span.html() );
      seconds = seconds + 1;
      span.html(seconds);
    });;
  }

  function initReload(reload_url) {
    RELOAD_URL = reload_url;
    resetTimeout();<commit_msg>Fix wait_for_build to stop pinging after complete<commit_after>I.wait_for_build = (function ($) {
  var TIMER_SELECTOR = "[data-increment-every-second]";
  var RELOAD_TIMEOUT = 4000;
  var RELOAD_URL = null;

  function initBuildChecker(check_build_url, reload_url) {
    RELOAD_URL = reload_url;
    checkBuild(check_build_url);
  }

  function checkBuild(check_build_url) {
    jQuery.ajax(check_build_url, {dataType: 'json', success: function(build) {
      if( !window.builds ) window.builds = {};
      if( !window.builds[build.id] ) {
        window.builds[build.id] = build;
        enqueueCheckBuild(check_build_url);
      } else {
        var before = window.builds[build.id];
        if( before.status == build.status ) {
          enqueueCheckBuild(check_build_url);
        } else {
          reload();
        }
        window.builds[build.id] = build;
      }
    }});
  }

  function enqueueCheckBuild(check_build_url) {
    setTimeout(function() {
      checkBuild(check_build_url);
    }, RELOAD_TIMEOUT);
  }

  function updateBuildTimers() {
    jQuery(TIMER_SELECTOR).each(function(index, ele) {
      var span = $(ele);
      var seconds = parseInt( span.html() );
      seconds = seconds + 1;
      span.html(seconds);
    });;
  }

  function initReload(reload_url) {
    RELOAD_URL = reload_url;
    resetTimeout();
{'fraction_non_alphanumeric': 0.12783981517135157, 'fraction_numerical': 0.003850596842510589, 'mean_word_length': 3.1107594936708862, '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': '3092421', 'n_tokens_mistral': 883, 'n_tokens_neox': 868, 'n_words': 142}