<commit_before>$(function() {
  var ref = new Firebase('https://poofytoo.firebaseio.com/infoloungelet');
  var lastColor = '';

  // Force Reset Page
  ref.child('refresh').on('value', function(s) {
    console.log(s.val());
    if (s.val() == 1) {
      ref.child('refresh').set(0);
      location.reload();
    }
  })

  var action = function() {
    currentTime();
    slideOverlay();
  }

  var randomColor = function() {
    var colors = ['green', 'purple', 'blue', 'pink', 'white', 'orange', 'orange', 'blue'];
    var color = colors[Math.floor(Math.random() * colors.length)];
    while (color == lastColor) {
      color = colors[Math.floor(Math.random() * colors.length)];
    }
    lastColor = color;
    return color;
  }

  var randomGreeting = function() {
    var greetings = ['HELLO!', 'HI!'];
    var r = Math.random();
    if (r < 0.4) {
      return currentTime();
    } else if (r < 0.8) {
      return currentDate();
    } else {
      return 'HELLO!';
    }
  }

  var currentTime = function() {
    var d = new Date();
    return d.getHours() + '<span class="colon-shift">:</span>' + d.getMinutes();
  }

  var currentDate = function() {
    var m_names = new Array("JAN", "FEB", "MAR", 
    "APR", "MAY", "JUNE", "JULY", "AUG", "SEPT", 
    "OCT", "NOV", "DEC");

    var d = new Date();
    var curr_date = d.getDate();
    var curr_month = d.getMonth();
    var curr_year = d.getFullYear();
    return m_names[curr_month] + ' ' + curr_date
  }

  var slideOverlay = function() {
    var dir = Math.random() > 0.5 ? 'HOR' : 'VER';
    var fValue = dir == 'VER' ? $(document).height() : $(document).width();

    $('.a1').clone()
      .addClass('c1')
      .removeClass('a1')
      .addClass(randomColor())
      .css('f', 0)
      .css('clip', 'rect(0px, auto, auto, auto)')
      .appendTo('body')
      .show();

    $('.c1').find('h1').html(randomGreeting());
    $('.c1').animate({f: fValue},
    {
      step: function(now, fx) {
        if (dir == 'VER') {
          $(this).css('clip', 'rect(0px, auto, '+(now)+'px, 0px)')<commit_msg>use utc values<commit_after>$(function() {
  var ref = new Firebase('https://poofytoo.firebaseio.com/infoloungelet');
  var lastColor = '';

  // Force Reset Page
  ref.child('refresh').on('value', function(s) {
    console.log(s.val());
    if (s.val() == 1) {
      ref.child('refresh').set(0);
      location.reload();
    }
  })

  var action = function() {
    currentTime();
    slideOverlay();
  }

  var randomColor = function() {
    var colors = ['green', 'purple', 'blue', 'pink', 'white', 'orange', 'orange', 'blue'];
    var color = colors[Math.floor(Math.random() * colors.length)];
    while (color == lastColor) {
      color = colors[Math.floor(Math.random() * colors.length)];
    }
    lastColor = color;
    return color;
  }

  var randomGreeting = function() {
    var greetings = ['HELLO!', 'HI!'];
    var r = Math.random();
    if (r < 0.4) {
      return currentTime();
    } else if (r < 0.8) {
      return currentDate();
    } else {
      return 'HELLO!';
    }
  }

  var currentTime = function() {
    var d = new Date();
    return d.getUTCHours() + '<span class="colon-shift">:</span>' + d.getUTCMinutes();
  }

  var currentDate = function() {
    var m_names = new Array("JAN", "FEB", "MAR", 
    "APR", "MAY", "JUNE", "JULY", "AUG", "SEPT", 
    "OCT", "NOV", "DEC");

    var d = new Date();
    var curr_date = d.getUTCDate();
    var curr_month = d.getUTCMonth();
    return m_names[curr_month] + ' ' + curr_date
  }

  var slideOverlay = function() {
    var dir = Math.random() > 0.5 ? 'HOR' : 'VER';
    var fValue = dir == 'VER' ? $(document).height() : $(document).width();

    $('.a1').clone()
      .addClass('c1')
      .removeClass('a1')
      .addClass(randomColor())
      .css('f', 0)
      .css('clip', 'rect(0px, auto, auto, auto)')
      .appendTo('body')
      .show();

    $('.c1').find('h1').html(randomGreeting());
    $('.c1').animate({f: fValue},
    {
      step: function(now, fx) {
        if (dir == 'VER') {
          $(this).css('clip', 'rect(0px, auto, '+(now)+'px, 0px)')
{'fraction_non_alphanumeric': 0.2144595910418695, 'fraction_numerical': 0.008763388510223954, 'mean_word_length': 2.695143884892086, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '2449254', 'n_tokens_mistral': 1509, 'n_tokens_neox': 1475, 'n_words': 322}