<commit_before>/*!
 * jQuery Mobile v@VERSION
 * http://jquerymobile.com/
 *
 * Copyright 2010, jQuery Project
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 */

( function( $, window, undefined ) {

function css3TransitionHandler( name, reverse, $to, $from )
{
	var deferred = new $.Deferred(),
		reverseClass = reverse ? " reverse" : "",
		viewportClass = "ui-mobile-viewport-transitioning viewport-" + name,
		doneFunc = function(){
			$to.add( $from ).removeClass( "out in reverse " + name );
			if ( $from ){
				$from.removeClass( $.mobile.activePageClass );
			}
			$to.parent().removeClass( viewportClass );
	
			deferred.resolve( name, reverse, $to, $from );
		};
	
	$to.animationComplete( doneFunc );
	
	$to.parent().addClass( viewportClass );
	if ( $from ){
		$from.addClass( name + " out" + reverseClass );
	}
	$to.addClass( $.mobile.activePageClass + " " + name + " in" + reverseClass );

	return deferred.promise();
}

// Make our transition handler public.
$.mobile.css3TransitionHandler = css3TransitionHandler;

// If the default transition handler is the 'none' handler, replace it with our handler.
if ( $.mobile.defaultTransitionHandler === $.mobile.noneTransitionHandler ){
	$.mobile.defaultTransitionHandler = css3TransitionHandler;
}

})( jQuery, this );<commit_msg>jquery.mobile.transition.js: code to jQuery core standards, part deux.<commit_after>/*!
 * jQuery Mobile v@VERSION
 * http://jquerymobile.com/
 *
 * Copyright 2010, jQuery Project
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 */

( function( $, window, undefined ) {

function css3TransitionHandler( name, reverse, $to, $from )
{
	var deferred = new $.Deferred(),
		reverseClass = reverse ? " reverse" : "",
		viewportClass = "ui-mobile-viewport-transitioning viewport-" + name,
		doneFunc = function() {
			$to.add( $from ).removeClass( "out in reverse " + name );
			if ( $from ) {
				$from.removeClass( $.mobile.activePageClass );
			}
			$to.parent().removeClass( viewportClass );
	
			deferred.resolve( name, reverse, $to, $from );
		};
	
	$to.animationComplete( doneFunc );
	
	$to.parent().addClass( viewportClass );
	if ( $from ) {
		$from.addClass( name + " out" + reverseClass );
	}
	$to.addClass( $.mobile.activePageClass + " " + name + " in" + reverseClass );

	return deferred.promise();
}

// Make our transition handler public.
$.mobile.css3TransitionHandler = css3TransitionHandler;

// If the default transition handler is the 'none' handler, replace it with our handler.
if ( $.mobile.defaultTransitionHandler === $.mobile.noneTransitionHandler ) {
	$.mobile.defaultTransitionHandler = css3TransitionHandler;
}

})( jQuery, this );
{'fraction_non_alphanumeric': 0.14847482543182652, 'fraction_numerical': 0.006615214994487321, 'mean_word_length': 3.9671532846715327, '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': '5424851', 'n_tokens_mistral': 870, 'n_tokens_neox': 805, 'n_words': 217}