<commit_before>class Countdown {
    constructor(element, countFrom, terminalStatement) {
      this.element = element; //
      this.countFrom = countFrom;
      this.terminalStatement = terminalStatement;
      this.countdownDuration = 800;
    }
    beginCountdown() {
        this.doCount(this.countFrom);       
    }
    doCount(increment) {
        var that = this;
        setTimeout(function() {
            that.element.fadeIn(0);
            that.setCountdownName(increment, that.element);
            that.element.fadeOut(that.countdownDuration);
            if (increment>0) {
                that.doCount(--increment);
            }
        },that.countdownDuration);
    }
    
    setCountdownName(increment, element) {
        if (increment===0) {
            element.text(this.terminalStatement);
            element.css('color', 'red');
            element.css('font-weight', 'bolder');
        }
        else {
            element.text(increment);
        }
    }
  }<commit_msg>make all the things better<commit_after>class Countdown {
    constructor(element, countFrom, terminalStatement) {
      this.element = element; //
      this.countFrom = countFrom;
      this.terminalStatement = terminalStatement;
      this.countdownDuration = 800;
    }
    beginCountdown() {
        this.doCount(this.countFrom);       
    }
    doCount(increment) {
        var that = this;
        setTimeout(function() {
            that.element.fadeIn(0);
            that.setCountdownName(increment, that.element);
            that.element.fadeOut(that.countdownDuration);
           // if (increment>0) { //terminating conditions remove to blow test
                that.doCount(--increment);
           // }
        },that.countdownDuration);
    }
    
    setCountdownName(increment, element) {
        if (increment===0) {
            element.text(this.terminalStatement);
            element.css('color', 'red');
            element.css('font-weight', 'bolder');
        }
        else {
            element.text(increment);
        }
    }
  }
{'fraction_non_alphanumeric': 0.11844660194174757, 'fraction_numerical': 0.005825242718446602, 'mean_word_length': 1.9234042553191488, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6566039', 'n_tokens_mistral': 585, 'n_tokens_neox': 569, 'n_words': 88}