<commit_before>require(
['facebook', 'ext/jquery', 'util', 'sign_in', 'ext/cookie', 'ext/moment'],
function(_facebook, $, _util, _sign_in, _cookie, _moment) {
  $('.header-bg').css('opacity', 1.0);
  $('.sign-up-box').addClass('animated');

  var next = _util.getQueryParam('next');
  var nextUrl;
  if (next) {
    nextUrl = '/profile?next=' + next;
  }
  _facebook.initConnectButton({
    source: 'HOME',
    nextUrl: nextUrl
  });

  var referrerId = _util.getReferrerId();
  if (referrerId) {
    mixpanel.track('Visit Referral Link', { referrerId: referrerId });
    $.cookie('referrer_id', referrerId, { expires: 30, path: '/' });
  } else {
    $.removeCookie('referrer_id');
  }

  _sign_in.renderEmailSignInModal();

  $('.email-link').click(function() {
    mixpanel.track('Sign in with email intent');
  });

  mixpanel.track('Impression: Landing page');

  $(document.body).trigger('pageScriptComplete');

  window.setTimeout(function() {
    $('#referral-contest').fadeIn(1000);
  }, 500);

  window.setInterval(function() {
    var duration = moment.duration(moment('2013-03-25 23:59:59 -0400').diff());
    $('#referral-contest')
      .find('.contest-hours').text(duration.hours()).end()
      .find('.contest-mins').text(duration.minutes()).end()
      .find('.contest-secs').text(duration.seconds()).end();
  }, 1000);
});<commit_msg>fix up timer countdown on homepage due to moment.js version revert (downgrade)<commit_after>require(
['facebook', 'ext/jquery', 'util', 'sign_in', 'ext/cookie', 'ext/moment'],
function(_facebook, $, _util, _sign_in, _cookie, _moment) {
  $('.header-bg').css('opacity', 1.0);
  $('.sign-up-box').addClass('animated');

  var next = _util.getQueryParam('next');
  var nextUrl;
  if (next) {
    nextUrl = '/profile?next=' + next;
  }
  _facebook.initConnectButton({
    source: 'HOME',
    nextUrl: nextUrl
  });

  var referrerId = _util.getReferrerId();
  if (referrerId) {
    mixpanel.track('Visit Referral Link', { referrerId: referrerId });
    $.cookie('referrer_id', referrerId, { expires: 30, path: '/' });
  } else {
    $.removeCookie('referrer_id');
  }

  _sign_in.renderEmailSignInModal();

  $('.email-link').click(function() {
    mixpanel.track('Sign in with email intent');
  });

  mixpanel.track('Impression: Landing page');

  $(document.body).trigger('pageScriptComplete');

  window.setTimeout(function() {
    $('#referral-contest').fadeIn(1000);
  }, 1000);

  var contestEnd = moment('2013-03-25 23:59:59 -0400', 'YYYY-MM-DD HH:mm:ss Z');
  window.setInterval(function() {
    var duration = moment.duration(contestEnd.diff());
    $('#referral-contest')
      .find('.contest-hours').text(duration.hours()).end()
      .find('.contest-mins').text(duration.minutes()).end()
      .find('.contest-secs').text(duration.seconds()).end();
  }, 1000);
});
{'fraction_non_alphanumeric': 0.208067940552017, 'fraction_numerical': 0.023708421797593773, 'mean_word_length': 4.196691176470588, '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': '5300301', 'n_tokens_mistral': 1030, 'n_tokens_neox': 958, 'n_words': 161}