<commit_before>(function($) {
  $.declare('slideCssAnimations', {

    defaults: {
      animationEndEvents: 'animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd',
      animationBaseClass: 'slide-transition',
      itemActiveClass: 'slide-active'
    },

    init: function() {

      // Check for css3 animation support
      if(this.el[0].style.animationName === undefined) {
        //return false;
      }

      var slide = this.el.data('slide');
      this.animating = false;
      this.container = this.el.slide('getContainer');
      this.slides = this.container.children();

      var pageWidth = slide.pageWidth;
      this.slides.each(function(index, el) {
        $(this).css({
          left: '-'+(index*pageWidth)+'px'
        });
      });
      this.slides.eq(0)
        .addClass(this.itemActiveClass);

      this.el.slide('setTransition', this.proxy(this.transition));

    },

    transition: function(current, previous, callback) {
      var self = this;<commit_msg>Detecting CSS transition support before overriding transition<commit_after>(function($) {
  $.declare('slideCssAnimations', {

    defaults: {
      animationEndEvents: 'animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd',
      animationBaseClass: 'slide-transition',
      itemActiveClass: 'slide-active'
    },

    init: function() {

      var slide = this.el.data('slide');
      this.animating = false;
      this.container = this.el.slide('getContainer');
      this.slides = this.container.children();

      var pageWidth = slide.pageWidth;
      if (this.animationSupport()) {
        this.slides.each(function(index, el) {
          $(this).css({
            left: '-'+(index*pageWidth)+'px'
          });
        });
        this.el.slide('setTransition', this.proxy(this.transition));
        this.slides.eq(0)
          .addClass(this.itemActiveClass);
      }


    },

    animationSupport: function(){
      var animation = false;
      var animationstring = 'animation';
      var keyframeprefix = '';
      var domPrefixes = 'Webkit Moz O ms Khtml'.split(' ');
      var pfx  = '';

      if (this.el[0].style.animationName !== undefined) { animation = true; }    

      if (!animation) {
        for( var i = 0, k = domPrefixes.length; i < k; i++ ) {
          if( this.el[0].style[domPrefixes[i] + 'AnimationName'] !== undefined ) {
            pfx = domPrefixes[ i ];
            animationstring = pfx + 'Animation';
            keyframeprefix = '-' + pfx.toLowerCase() + '-';
            animation = true;
            return true;
          }
        }
      }
    },

    transition: function(current, previous, callback) {
      var self = this;
{'fraction_non_alphanumeric': 0.1425905188503173, 'fraction_numerical': 0.0026129152668906306, 'mean_word_length': 2.392405063291139, 'pattern_counts': {'":': 0, '<': 4, '<?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': '1522339', 'n_tokens_mistral': 785, 'n_tokens_neox': 761, 'n_words': 151}