<commit_before>$.fn.cssanimate = function(params, duration, delay, easing, callback) {
    
    var origin = undefined;
    var style = undefined;
    
    if (typeof duration === 'function') {
        callback = duration;
        duration = undefined;
    }
    
    if (typeof delay === 'function') {
        callback = delay;
        delay = undefined;
    }
    
    if (typeof easing === 'function') {
        callback = easing;
        easing = undefined;
    }
    
    if (params.easing) {
        easing = params.easing;
        delete params.easing;
    }
    
    if (params.origin) {
        origin = params.origin;
        delete params.origin;
    }
    
    if (params.style) {
        origin = params.style;
        delete params.style;
    }
    
    // keep 3d control parameter disable.
    // this.parent().css('-webkit-perspective', params.perspective || 'none');
    delete params.perspective;
    
    this.queue(function() {
        
        function animated() {
            $(this).unbind(Style.onTransitionEvent, $.proxy(animated, this));
            if (typeof callback === 'function') $.proxy(callback, this)();
            $(this).dequeue();
        }
        
        var style = new Style(duration, delay, easing, origin, style);
        var css = style.assemble(params).css;
        
        // When transition-duration propery is zero, we have to call callback function 
        // because onTransitionEvent would not be fired.
        if (style.transition.duration === 0) {
            $(this).css(css);
            // We have to wait until css property is set.
            // If not so, next queue might be executed before setting css to dom.
            var i = 0;
            while (1) {
                var adopted = $(this).css('{0}transition-delay'.format(Style.prefix));
                if (adopted === '0s') break;
                if (++i > 50) break; // avoid infinite loop
            }
            $.proxy(callback, this)();<commit_msg>bug of override<commit_after>$.fn.cssanimate = function(params, duration, delay, easing, callback) {
    
    var origin = undefined;
    var style = undefined;
    
    if (typeof duration === 'function') {
        callback = duration;
        duration = undefined;
    }
    
    if (typeof delay === 'function') {
        callback = delay;
        delay = undefined;
    }
    
    if (typeof easing === 'function') {
        callback = easing;
        easing = undefined;
    }
    
    if (params.easing) {
        easing = params.easing;
        delete params.easing;
    }
    
    if (params.origin) {
        origin = params.origin;
        delete params.origin;
    }
    
    if (params.style) {
        style = params.style;
        delete params.style;
    }
    
    // keep 3d control parameter disable.
    // this.parent().css('-webkit-perspective', params.perspective || 'none');
    delete params.perspective;
    
    this.queue(function() {
        
        function animated() {
            $(this).unbind(Style.onTransitionEvent, $.proxy(animated, this));
            if (typeof callback === 'function') $.proxy(callback, this)();
            $(this).dequeue();
        }
        
        var style = new Style(duration, delay, easing, origin, style);
        var css = style.assemble(params).css;
        
        // When transition-duration propery is zero, we have to call callback function 
        // because onTransitionEvent would not be fired.
        if (style.transition.duration === 0) {
            $(this).css(css);
            // We have to wait until css property is set.
            // If not so, next queue might be executed before setting css to dom.
            var i = 0;
            while (1) {
                var adopted = $(this).css('{0}transition-delay'.format(Style.prefix));
                if (adopted === '0s') break;
                if (++i > 50) break; // avoid infinite loop
            }
            $.proxy(callback, this)();
{'fraction_non_alphanumeric': 0.12408575031525851, 'fraction_numerical': 0.00403530895334174, 'mean_word_length': 1.7560806115357888, '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': '6850488', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1070, 'n_words': 305}