<commit_before>// Generated by CoffeeScript 1.8.0
(function() {
  var channel, delay, donated, hosted, poolDonating, poolHosting, poolSubscribing, pusher, running, setUp, soundDonation, soundSubscription, source, subscribed, substreaked, tearDown;

  delay = 5;

  running = false;

  poolDonating = 0;

  poolHosting = 0;

  poolSubscribing = 0;

  soundDonation = new Audio('/static/audio/donation.ogg');

  soundSubscription = new Audio('/static/audio/subscription.ogg');

  setUp = function(payload) {
    console.log("" + payload.username + " is " + payload.action + "! Triggering setUp().");
    ($(".js-" + payload.action + " .js-username")).text(payload.username);
    ($(".js-" + payload.action)).addClass('active');
    ($(".js-square-" + payload.action)).addClass('visible');
    return ($('.js-square-flipper')).addClass('toggle');
  };

  tearDown = function(payload) {
    console.log('Triggering tearDown().');
    ($(".js-" + payload.action)).removeClass('active');
    ($(".js-square-" + payload.action)).removeClass('visible');
    return ($('.js-square-flipper')).removeClass('toggle');
  };

  subscribed = function(payload, resub, queued) {
    if (!running) {
      running = true;
      soundSubscription.volume = 0.4;
      soundSubscription.play();
      ($('.js-subscribing .js-type')).text(payload.title);
      if (resub) {
        ($('.js-subscribing .js-message')).text('Welcome back to the Crusaders!');
      }
      setUp(payload);
      return setTimeout((function() {
        tearDown(payload);
        running = false;
        if (poolSubscribing >= 1) {
          poolSubscribing--;
          return console.log("There are " + poolSubscribing + " subs left in the pool.");
        }
      }), 6900);
    } else {
      if (!queued) {
        poolSubscribing++;<commit_msg>Oh... we never updated the JS.<commit_after>// Generated by CoffeeScript 1.8.0
(function() {
  var channel, delay, donated, hosted, poolDonating, poolHosting, poolSubscribing, pusher, running, setUp, soundDonation, soundSubscription, source, subscribed, substreaked, tearDown;

  delay = 5;

  running = false;

  poolDonating = 0;

  poolHosting = 0;

  poolSubscribing = 0;

  soundDonation = new Audio('/static/audio/donation.ogg');

  soundSubscription = new Audio('/static/audio/subscription.ogg');

  setUp = function(payload) {
    console.log("" + payload.username + " is " + payload.action + "! Triggering setUp().");
    ($(".js-" + payload.action + " .js-username")).text(payload.username);
    ($(".js-" + payload.action)).addClass('active');
    ($(".js-square-" + payload.action)).addClass('visible');
    return ($('.js-square-flipper')).addClass('toggle');
  };

  tearDown = function(payload) {
    console.log('Triggering tearDown().');
    ($(".js-" + payload.action)).removeClass('active');
    ($(".js-square-" + payload.action)).removeClass('visible');
    return ($('.js-square-flipper')).removeClass('toggle');
  };

  subscribed = function(payload, resub, queued) {
    if (!running) {
      running = true;
      soundSubscription.volume = 0.4;
      soundSubscription.play();
      ($('.js-subscribing .js-type')).text(payload.title);
      if (resub) {
        ($('.js-subscribing .js-message')).text('Welcome back to the Crusaders!');
      } else {
        ($('.js-subscribing .js-message')).text('Welcome to the Crusaders!');
      }
      setUp(payload);
      return setTimeout((function() {
        tearDown(payload);
        running = false;
        if (poolSubscribing >= 1) {
          poolSubscribing--;
          return console.log("There are " + poolSubscribing + " subs left in the pool.");
        }
      }), 6900);
    } else {
      if (!queued) {
        poolSubscribing++;
{'fraction_non_alphanumeric': 0.1813304721030043, 'fraction_numerical': 0.0075107296137339056, 'mean_word_length': 3.11135611907387, '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': '4038774', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1135, 'n_words': 232}