<commit_before>var TweenMax = require('gsap')
var assign = require('object-assign')

module.exports = function(Promise) {

	Promise.config({
	    cancellation: true
	})

	function animateFunc(func, element, duration, opts) {
		opts = assign({}, opts)
		var tween
		return new Promise(function(resolve, reject, onCancel) {
			opts.onComplete = resolve
			tween = func(element, duration, opts)
			onCancel && onCancel(function(){
				tween.kill()
			})
		})
	}

	var animateTo = animateFunc.bind(null, TweenMax.to)

	var util = animateTo
	util.to = animateTo
	util.from = animateFunc.bind(null, TweenMax.from)

	util.set = function animateSet(element, params) {
		params = assign({}, params)
		return new Promise(function(resolve, reject) {
			params.onComplete = resolve<commit_msg>minor: spaces to tab<commit_after>var TweenMax = require('gsap')
var assign = require('object-assign')

module.exports = function(Promise) {

	Promise.config({
		cancellation: true
	})

	function animateFunc(func, element, duration, opts) {
		opts = assign({}, opts)
		var tween
		return new Promise(function(resolve, reject, onCancel) {
			opts.onComplete = resolve
			tween = func(element, duration, opts)
			onCancel && onCancel(function(){
				tween.kill()
			})
		})
	}

	var animateTo = animateFunc.bind(null, TweenMax.to)

	var util = animateTo
	util.to = animateTo
	util.from = animateFunc.bind(null, TweenMax.from)

	util.set = function animateSet(element, params) {
		params = assign({}, params)
		return new Promise(function(resolve, reject) {
			params.onComplete = resolve
{'fraction_non_alphanumeric': 0.12707535121328226, 'fraction_numerical': 0.0, 'mean_word_length': 4.348122866894198, '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': '5402780', 'n_tokens_mistral': 558, 'n_tokens_neox': 494, 'n_words': 122}