<commit_before>var captionLength = 0;
var caption = '';

function cursorAnimation() {
  $('#cursor').animate({
      opacity: 0
  }, 400).animate({
      opacity: 1
  }, 400);
}

function type() {
    $caption.html(caption.substr(0, captionLength++));
    if(captionLength < caption.length+1) {
        setTimeout('type()', 70);
    }
}

function erase() {
    $caption.html(caption.substr(0, captionLength--));
    if(captionLength >= 0) {
        setTimeout('erase()', 50);
    }
}

function firstCaptionStart() {
  caption = "Oh, hello there.";
  type();
  setTimeout('erase()', 4000);
  setTimeout('secondCaptionType()', 6000);
}

function secondCaptionType() {
  caption = "Sorry my page is down.";
  type();
  setTimeout('erase()', 4000);
  setTimeout('lastCaptionEnd()', 6000);
}

function lastCaptionEnd() {
  caption = "Should be back up soon! :)"
  type();
  setTimeout(function(){
    $('#cursor').css('display', 'none')
  }, 1500)
}

$(document).ready(function(){
  setInterval('cursorAnimation()', 600);
  $caption = $('#caption');
  setTimeout('firstCaptionStart()', 1000);
})<commit_msg>remove global scope caption variable<commit_after>var captionLength = 0;

function cursorAnimation() {
  $('#cursor').animate({
      opacity: 0
  }, 400).animate({
      opacity: 1
  }, 400);
}

function type() {
    $caption.html(caption.substr(0, captionLength++));
    if(captionLength < caption.length+1) {
        setTimeout('type()', 70);
    }
}

function erase() {
    $caption.html(caption.substr(0, captionLength--));
    if(captionLength >= 0) {
        setTimeout('erase()', 50);
    }
}

function firstCaptionStart() {
  caption = "Oh, hello there.";
  type();
  setTimeout('erase()', 4000);
  setTimeout('secondCaptionType()', 6000);
}

function secondCaptionType() {
  caption = "Sorry my page is down.";
  type();
  setTimeout('erase()', 4000);
  setTimeout('lastCaptionEnd()', 6000);
}

function lastCaptionEnd() {
  caption = "Should be back up soon! :)"
  type();
  setTimeout(function(){
    $('#cursor').css('display', 'none')
  }, 1500)
}

$(document).ready(function(){
  setInterval('cursorAnimation()', 600);
  $caption = $('#caption');
  setTimeout('firstCaptionStart()', 1000);
});
{'fraction_non_alphanumeric': 0.19683257918552036, 'fraction_numerical': 0.039819004524886875, 'mean_word_length': 4.129930394431555, 'pattern_counts': {'":': 0, '<': 5, '<?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': '197276', 'n_tokens_mistral': 788, 'n_tokens_neox': 711, 'n_words': 150}