<commit_before>/*
 * jquery.animate.css.helpers.js
 * https://github.com/ryanlabouve/jquery.animate.css.helpers.js
 *
 * Copyright (c) 2012 <NAME>
 * Licensed under the MIT license.
 */

;(function($, window, document, undefined) {

  var defaults = {
    animation_show_class : "animated bounceIn",
    animation_show_duration: 1000,
    animation_hide_class : "animated bounceOut",
    animation_hide_duration: 1000,
    animation_wait_duration: 1500,
    hide_css_class: "hide",
    between_animation_duration: 100

  };

  // I know I know... I don't care... I'm tacking on 4 jquery functions
  
  // TODO: Can I abstract this to $.fn.css_transition()?
  $.fn.css_show = function(options) {
    var options = $.extend( {}, defaults, options );
    var counter = 0;
    return this.each(function() {
      var el = this;
      // Call next animation in selection chain (after specified wait)
      $.doTimeout( counter++ * options['between_animation_duration'], function() {
        // Add Animation CSS and Remove any Visibility Hiding CSS
        $(el).removeClass(options['hide_css_class']);
        $(el).addClass(options['animation_show_class']);
        // After animation is done, remove class
        $.doTimeout(options['animation_show_duration'], function() {
          $(el).removeClass(options['animation_show_class']);
        }); //doTimeout
      }); // doTimeout
    }); // each
  }; // $.fn.css_show


  $.fn.css_hide = function(options) {
    var options = $.extend( {}, defaults, options );
    var counter = 0;
    return this.each(function() {
      var el = this;
      // Call next animation in selection chain (after specified wait)
      $.doTimeout( counter++ * options['between_animation_duration'], function() {
        // Add Animation Hide  CSS
        $(el).addClass(options['animation_hide_class']);
        // After animation is done, remove class
        $.doTimeout( options['animation_hide_duration'], function() {
          $(el).addClass(options['hide_css_class']);
          $(el).removeClass(options['animation_hide_class']);
        }); // doTimeout
      }); // doTimeout
    }); // each
  }; //$fn.css_hide

  $.fn.css_show_and_hide = function(options) {
    return this.each(function() {
      $(this).html('Css Show and Hide');
    });
  }
<commit_msg>Prevent atomic clicking round one. Still buggy if you do random things<commit_after>/*
 * jquery.animate.css.helpers.js
 * https://github.com/ryanlabouve/jquery.animate.css.helpers.js
 *
 * Copyright (c) 2012 <NAME>
 * Licensed under the MIT license.
 */

;(function($, window, document, undefined) {

  var defaults = {
    animation_show_class : "animated bounceIn",
    animation_show_duration: 1000,
    animation_hide_class : "animated bounceOut",
    animation_hide_duration: 1000,
    animation_wait_duration: 1500,
    hide_css_class: "hide",
    between_animation_duration: 100

  };

  // I know I know... I don't care... I'm tacking on 4 jquery functions
  
  // TODO: Can I abstract this to $.fn.css_transition()?
  $.fn.css_show = function(options) {
    var options = $.extend( {}, defaults, options );
    var counter = 0;


    return this.each(function() {
      var el = this;

      var dto_hide_id = "dto_hide_" + counter;
      var dto_show_id = "dto_show_" + counter;

      // Call next animation in selection chain (after specified wait)
      $.doTimeout( dto_show_id, counter++ * options['between_animation_duration'], function() {
        // Add Animation CSS and Remove any Visibility Hiding CSS
        $(el).removeClass(options['hide_css_class']);
        $(el).addClass(options['animation_show_class']);
        // After animation is done, remove class
        $.doTimeout( dto_hide_id, options['animation_show_duration'], function() {
          $(el).removeClass(options['animation_show_class']);
        }); //doTimeout
      }); // doTimeout
    }); // each
  }; // $.fn.css_show


  $.fn.css_hide = function(options) {
    var options = $.extend( {}, defaults, options );
    var counter = 0;
    return this.each(function() {
      var el = this;

      var dto_hide_id = "dto_hide_" + counter;
      var dto_show_id = "dto_show_" + counter;
      
      $.doTimeout(dto_hide_id, counter++ * options['between_animation_duration'], function() {
        // Add Animation Hide  CSS
        $(el).addClass(options['animation_hide_class']);
        // After animation is done, remove class
        $.doTimeout(dto_show_id, options['animation_hide_duration'], function() {
          $(el).addClass(options['hide_css_class']);
          $(el).removeClass(options['animation_hide_class']);
        }); // doTimeout
      }); // doTimeout
    }); // each
  }; //$fn.css_hide

  $.fn.css_show_and_hide = function(options) {
    return this.each(function() {
      $(this).html('Css Show and Hide');
    });
  }

{'fraction_non_alphanumeric': 0.14327062228654125, 'fraction_numerical': 0.009096547446764523, 'mean_word_length': 2.9655737704918033, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3608655', 'n_tokens_mistral': 1486, 'n_tokens_neox': 1404, 'n_words': 345}