<commit_before>//TODO: Rewrite the transition helper to mimic the jquery bootstrap version which is a port of the same from modernizr
define(['dojo/has', 'dojo/_base/sniff'],
function(has) {
    var support_transition = (function(){
        var thisBody = document.body || document.documentElement,
			thisStyle = thisBody.style,
			support = thisStyle.transition !== undefined
		        || thisStyle.WebkitTransition !== undefined
		        || thisStyle.MozTransition !== undefined
		        || thisStyle.MsTransition !== undefined
		        || thisStyle.OTransition !== undefined;

		return support && {
            end: (function() {
				var transitionEnd = "TransitionEnd";
				if (has('webkit')) {
					transitionEnd = "webkitTransitionEnd";
				} else if (has('mozilla')) {
					transitionEnd = "transitionend";
				} else if (has('opera')) {
					transitionEnd = "oTransitionEnd";
				}
				return transitionEnd;
            }())
        }
	})();
	return support_transition;
});<commit_msg>Modified to mimic logic from modernizer<commit_after>define(['dojo/has', 'dojo/_base/sniff'],
function(has) {
	var support_transition = (function(){
		var transitionEnd = (function(){
			var el = document.createElement('bootstrap');
			var transEndEventNames = {
				'WebkitTransition' : 'webkitTransitionEnd',
				'MozTransition'    : 'transitionend',
				'OTransition'      : 'oTransitionEnd',
				'msTransition'     : 'MSTransitionEnd',
				'transition'       : 'transitionend'
			};
	        for(var name in transEndEventNames){
				if(el.style[name] !== undefined){
					return transEndEventNames[name];
				}
			}
		})();
		return transitionEnd && {
			end: transitionEnd
		}
	})();
	return support_transition;
});
{'fraction_non_alphanumeric': 0.1351193942923704, 'fraction_numerical': 0.0, 'mean_word_length': 3.28428927680798, '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': '7231004', 'n_tokens_mistral': 571, 'n_tokens_neox': 477, 'n_words': 111}