<commit_before>(function($, undefined){
  $.fn.anim = function(properties, duration, ease, callback){
    var transforms = [], opacity, key;
    for (key in properties)
      if (key === 'opacity') opacity = properties[key];
      else transforms.push(key + '(' + properties[key] + ')');

    if (parseFloat(duration) !== 0) {
      $.isFunction(callback) && this.one('webkitTransitionEnd', callback);
    } else {
      setTimeout(callback, 0);
    }

    return this.css({
      '-webkit-transition': 'all ' + (duration !== undefined ? duration : 0.5) + 's ' + (ease || ''),
      '-webkit-transform': transforms.join(' '),
      opacity: opacity
    });
  }
})(Zepto);<commit_msg>Set transition to none after webkitTransitionEnd event (closes #206)<commit_after>(function($, undefined){
  $.fn.anim = function(properties, duration, ease, callback){
    var transforms = [], opacity, key, that = this;
    for (key in properties)
      if (key === 'opacity') opacity = properties[key];
      else transforms.push(key + '(' + properties[key] + ')');

    var wrappedCallback = function () {
        that.css( { '-webkit-transition': 'none' } );
        if ( $.isFunction(callback) ) {
            callback();
        }
    };

    if (parseFloat(duration) !== 0) {
      this.one('webkitTransitionEnd', wrappedCallback);
    } else {
      setTimeout(wrappedCallback, 0);
    }

    return this.css({
      '-webkit-transition': 'all ' + (duration !== undefined ? duration : 0.5) + 's ' + (ease || ''),
      '-webkit-transform': transforms.join(' '),
      opacity: opacity
    });
  }
})(Zepto);
{'fraction_non_alphanumeric': 0.18335419274092615, 'fraction_numerical': 0.00688360450563204, 'mean_word_length': 2.957920792079208, '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': '1810038', 'n_tokens_mistral': 492, 'n_tokens_neox': 462, 'n_words': 111}