<commit_before>(function(buster, define) {

var assert, fail, sentinel;

assert = buster.assert;
fail = buster.assertions.fail;

sentinel = { value: 'sentinel' };

define('when/monitor/PromiseMonitor-test', function (require) {

	var Promise, when, PromiseMonitor;

	Promise = require('when/lib/Promise');
	PromiseMonitor = require('when/monitor/PromiseMonitor');

	buster.testCase('when/monitor/PromiseMonitor', {

		'reject should trigger report': function(done) {
			if (typeof console === 'undefined') {
				done();
				return;
			}

			console.promiseMonitor = new PromiseMonitor(function () {
				console.promiseMonitor = void 0;
				assert(true);
				done();
			});

			new Promise(function (_, reject) {
				reject();
			});
		},

		'Promise.reject should trigger report': function(done) {
			if (typeof console === 'undefined') {
				done();
				return;
			}
			console.promiseMonitor = new PromiseMonitor(function () {
				console.promiseMonitor = void 0;
				assert(true);
				done();
			});

			Promise.reject();
		}
	});

});
}(
	this.buster || require('buster'),
	typeof define === 'function' && define.amd ? define : function (id, factory) {
		var packageName = id.split(/[\/\-\.]/)[0], pathToRoot = id.replace(/[^\/]+/g, '..');<commit_msg>Fix PromiseMonitor tests<commit_after>(function(buster, define) {

var assert, fail, sentinel;

assert = buster.assert;
fail = buster.assertions.fail;

sentinel = { value: 'sentinel' };

define('when/monitor/PromiseMonitor-test', function (require) {

	var Promise, when, PromiseMonitor;

	Promise = require('when/lib/Promise');
	PromiseMonitor = require('when/monitor/PromiseMonitor');

	buster.testCase('when/monitor/PromiseMonitor', {

		'reject should trigger report': function(done) {
			if (typeof console === 'undefined') {
				done();
				return;
			}

			console.promiseMonitor = new PromiseMonitor({ report: function () {
				console.promiseMonitor = void 0;
				assert(true);
				done();
			}});

			new Promise(function (_, reject) {
				reject();
			});
		},

		'Promise.reject should trigger report': function(done) {
			if (typeof console === 'undefined') {
				done();
				return;
			}
			console.promiseMonitor = new PromiseMonitor({ report: function () {
				console.promiseMonitor = void 0;
				assert(true);
				done();
			}});

			Promise.reject();
		}
	});

});
}(
	this.buster || require('buster'),
	typeof define === 'function' && define.amd ? define : function (id, factory) {
		var packageName = id.split(/[\/\-\.]/)[0], pathToRoot = id.replace(/[^\/]+/g, '..');
{'fraction_non_alphanumeric': 0.17538340542666142, 'fraction_numerical': 0.0023594180102241447, 'mean_word_length': 3.633879781420765, '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': '3813584', 'n_tokens_mistral': 930, 'n_tokens_neox': 783, 'n_words': 172}