<commit_before>function Promise() {
	this.value = undefined
	this.deferreds = []
}

Promise.prototype.isFulfilled = false
Promise.prototype.isRejected = false

Promise.prototype.then = function (onFulfill, onReject) {
	var promise = new Promise,
	    deferred = defer(promise, onFulfill, onReject)

	if (this.isFulfilled || this.isRejected) {
		resolve(deferred, this.isFulfilled ? Promise.SUCCESS : Promise.FAILURE, this.value)
	} else {
		this.deferreds.push(deferred)
	}

	return promise
}

Promise.prototype.catch = function (onReject) {
	return this.then(null, onReject)
}

Promise.prototype.throw = function() {
	return this.catch(function (error) {
		next(function () {
			throw error
		})
	})
}

Promise.prototype.fulfill = function (value) {
	if (this.isFulfilled || this.isRejected) return
	var isResolved = false
	try {
		if (value === this) throw new TypeError('Can\'t resolve a promise with itself.')
		if (isObject(value) || isFunction(value)) {<commit_msg>fix for IE < 9<commit_after>function Promise() {
	this.value = undefined
	this.deferreds = []
}

Promise.prototype.isFulfilled = false
Promise.prototype.isRejected = false

Promise.prototype.then = function (onFulfill, onReject) {
	var promise = new Promise,
	    deferred = defer(promise, onFulfill, onReject)

	if (this.isFulfilled || this.isRejected) {
		resolve(deferred, this.isFulfilled ? Promise.SUCCESS : Promise.FAILURE, this.value)
	} else {
		this.deferreds.push(deferred)
	}

	return promise
}

Promise.prototype['catch'] = function (onReject) {
	return this.then(null, onReject)
}

Promise.prototype['throw'] = function() {
	return this['catch'](function (error) {
		next(function () {
			throw error
		})
	})
}

Promise.prototype.fulfill = function (value) {
	if (this.isFulfilled || this.isRejected) return
	var isResolved = false
	try {
		if (value === this) throw new TypeError('Can\'t resolve a promise with itself.')
		if (isObject(value) || isFunction(value)) {
{'fraction_non_alphanumeric': 0.13217213114754098, 'fraction_numerical': 0.0005122950819672131, 'mean_word_length': 4.485955056179775, 'pattern_counts': {'":': 0, '<': 4, '<?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': '7007732', 'n_tokens_mistral': 689, 'n_tokens_neox': 659, 'n_words': 147}